if(strcmp(cmd, "/refuelcars", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 5) { SendClientMessage(playerid, COLOR_GRAD1, "Нямаш достатъчно права, за да използваш командата!"); return 1; } 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 зареди всички коли!", PlayerName(playerid)); SendClientMessageToAll(COLOR_GRAD1,string); } } return 1; }
if(PlayerInfo[playerid][pAdmin] < 5)
if(strcmp(cmd, "/refuelcars", true) == 0) { if(IsPlayerConnected(playerid)) { 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); } } else { SendClientMessage(playerid, COLOR_GRAD1, "Нyiao доnoaoъчно i?aвa, зa дa eзiолзвao eоiaндaoa!"); return 1; } } return 1; } |
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;
}
if(PlayerInfo[playerid][pAdmin] >= 5)
{
SendClientMessage(playerid, COLOR_GRAD1, "Нямаш достатъчно права, за да използваш командата!");
return 1;
}