08.05.2013, 18:23
whatis [I] a loop ?
pawn Код:
cmd:refuelcars(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] == 1)
{//
for(new i=0; i< sizeof(VehicleInfo);i++){
VehicleInfo[i][pvFuel] = 100.0;
}//
SendClientMessageToAll(COLOR_BLUE,"SERVER: All cars have been refilled!");
SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"You have reffiled all cars!");
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
}
return 1;
}