18.04.2013, 22:29
How to stop the command stop spam?
Код:
SendClientMessage(playerid, 0xFF0000AA, "You not at the Gas Station!");
PHP код:
CMD:refull(playerid, params[])
{
if (GetPlayerVehicleSeat(playerid) == 0)
for (new i; i < sizeof(ARefuelPickups); i++)
if(IsPlayerInRangeOfPoint(playerid, 2.5, ARefuelPickups[i][pux], ARefuelPickups[i][puy], ARefuelPickups[i][puz]))
{
SetTimerEx("RefuelVehicle", 5000, false, "i", playerid);
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid, TXT_Refuelling, 3000, 4);
}
else
SendClientMessage(playerid, 0xFF0000AA, "You not at the Gas Station!");
return 1;
}