Help for vehicle
#5

Quote:
Originally Posted by Niixie
Код:
if(strcmp(cmd, "/ammo", true) == 0)
{
 if(IsPlayerConnected(playerid))
 {
  if(PlayerInfo[playerid][pFaction] == 3) //here you need to pur SWAT's faction ID.
   {
    if(IsPlayerInVehicle(playerid, vehicleid)) //delete the vehicleid and put in the inforcers id, the vehicle id of the server you know?
    {
     SafeGivePlayerWeapon(playerid, 24, 70);
     SafeGivePlayerWeapon(playerid, 31, 200);
     PlayerActionMessage(playerid,15.0,"takes out his M4 under the seat");//Edit this with what you want :P
    }
    else
    {
     SendClientMessage(playerid, COLOR, "Your not in a enforcer!"); // Edit if you want
    }
   }
 }
 return 1;
}
Ah, yeah forgot to put "IsPlayerInVehicle"
Reply


Messages In This Thread
Help for vehicle - by drawkk - 06.12.2009, 11:13
Re: Help for vehicle - by skaTim - 06.12.2009, 11:36
Re: Help for vehicle - by drawkk - 06.12.2009, 12:21
Re: Help for vehicle - by Niixie - 06.12.2009, 13:08
Re: Help for vehicle - by skaTim - 06.12.2009, 13:40
Re: Help for vehicle - by drawkk - 06.12.2009, 15:57

Forum Jump:


Users browsing this thread: 1 Guest(s)