11.09.2009, 14:30
hello
can anybody make a /refilladm command for admins
the can do everywhere do the command!
this is the normal command:
can anybody make a /refilladm command for admins
the can do everywhere do the command!
this is the normal command:
Код:
if(strcmp(cmd, "/refill", true) == 0) { if(IsPlayerConnected(playerid) == 1) { if(IsPlayerInAnyVehicle(playerid) == 1) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { if(IsAtGasStation(playerid) == 1) { if(GetVehType(GetPlayerVehicleID(playerid)) == 4) { SendPlayerRandomizeText(playerid,GREENIE,GAS_SERVICE_TEXT); TogglePlayerControllable(playerid,0); ChoosingGas[playerid] = 1; } else { SendMessage(playerid,WHITE,"[*] You can't fill this vehicle."); } } else { SendMessage(playerid,WHITE,"[*] You're not at Gas station."); } } else { SendMessage(playerid,WHITE,"[*] You're not a driver."); } } else { SendMessage(playerid,WHITE,"[*] You're not in a vehicle."); } } return 1; } return 0; }