ka obs geht sollte aber
if(strcmp(cmd, "/respawnthiscar", true) == 0 || strcmp(cmd, "/rtc", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 2 )
{
SendClientMessage(playerid, COLOR_GRAD1, " Nicht für dich MFG - Linux!");
return 1;
}
if(IsPlayerInAnyVehicle(playerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
//format(string, 256, "AdmWarning: %s has just respawned vehicle id %d.",sendername,GetPlayerVehicleID(playerid));
ABroadCast(COLOR_YELLOW,string,1);
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GREY, " Vehicle Respawned !");
}
}
return 1;
}
if(strcmp(cmd, "/respawnallcars", true) == 0 || strcmp(cmd, "/rac", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 3)
{
SendClientMessage(playerid, COLOR_GRAD1, " Nicht für dich MFG - Linux!");
return 1;
}
new bool:unwanted[CAR_AMOUNT];
for(new player=0; player<MAX_PLAYERS; player++)
{
if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
}
for(new car = 1; car <= 268; car++)
{
if(!unwanted[car]) SetVehicleToRespawn(car);
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "SERVER: Alle autos Respawnd by %s.", sendername);
BroadCast(COLOR_WHITE,string);
}
return 1;
}
if(strcmp(cmd, "/respawnrentcars", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 2)
{
SendClientMessage(playerid, COLOR_GRAD1, " Nicht für dich MFG - Linux!");
return 1;
}
new bool:unwanted[CAR_AMOUNT];
for(new player=0; player<MAX_PLAYERS; player++)
{
if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
}
for(new v = 135; v <= 154; v++)
{
if(!unwanted[v]) SetVehicleToRespawn(v);
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "SERVER: alle rentcars Respawmd by %s.", sendername);
BroadCast(COLOR_WHITE,string);
}
return 1;
}
if(strcmp(cmd, "/respawnrentbikes", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 2)
{
SendClientMessage(playerid, COLOR_GRAD1, " Nicht für dich MFG - Linux!");
return 1;
}
new bool:unwanted[CAR_AMOUNT];
for(new player=0; player<MAX_PLAYERS; player++)
{
if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
}
for(new v = 112; v <= 130; v++)
{
if(!unwanted[v]) SetVehicleToRespawn(v);
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "SERVER: Alle motoräder Respawnd by %s.", sendername);
BroadCast(COLOR_WHITE,string);
}
return 1;
}
muss unter
public OnPlayerCommandText(playerid, cmdtext[])
Dast Nicht Für dich MFG - Linux! kannst ändern bin grad zumüde dafür
mfg. grgserver.selfcoders.com