[HELP] /refilladm command
#2

Can't help much not knowing your script at all;

pawn Код:
if(strcmp(cmd, "/refilladm", true) == 0)
{
  if(IsPlayerAdmin(playerid))
  {
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
      Fuel[GetPlayerVehicleID(playerid)] = 999; // Change the array name & value to the correct ones
      return SendMessage(playerid,WHITE,"[*] Vehicle refilled.");
    }
    else return SendMessage(playerid,WHITE,"[*] You're not driving a vehicle.");
  }
  else return SendMessage(playerid,WHITE,"[*] You're not an admin.");
}
BTW, if you cannot do this easy code (just about adding IsPlayerAdmin() in the code), I really think you shouldn't be scripting gamemodes at all. First learn to script, then start making gamemodes. I bet this your gamemode is a GF-edit anyway.
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: 2 Guest(s)