18.05.2015, 13:03
Actually, There is no need for using "IsPlayerConnected(playerid)", Because we cannot use commands when we are offline ...
Use this:
Use this:
pawn Код:
if(strcmp(cmd, "/refuelcars", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] < 5)
{
else
{
for(new cars=0; cars<MAX_VEHICLES; cars++)
{
if(!VehicleOccupied(cars))
{
fuel[cars] = fuel[cars] = 100; //restoring fuel to 100
isrefuelling[playerid] = 0;//resetting anti-spam thingy :3
}
}
format(string, sizeof(string), "%s зa?aдe вneчee eолe!", PlayerName(playerid));
SendClientMessageToAll(COLOR_GRAD1,string);
}
}
}
return 1;
}

