[HELP] /refilladm command
#1

hello
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;
}
Reply


Messages In This Thread
[HELP] /refilladm command - by breakpaper - 11.09.2009, 14:30
Re: [HELP] /refilladm command - by Finn - 11.09.2009, 19:55
Re: [HELP] /refilladm command - by breakpaper - 11.09.2009, 19:58
Re: [HELP] /refilladm command - by (.Aztec); - 12.09.2009, 01:12
Re: [HELP] /refilladm command - by breakpaper - 12.09.2009, 06:32
Re: [HELP] /refilladm command - by Blades - 12.09.2009, 06:45

Forum Jump:


Users browsing this thread: 1 Guest(s)