How can I make a command for a certain vehicle only?
#3

Under OnPlayerCommandText(playerid,cmdtext[])

Код:
if(!strcmp(cmdtext,"/deliver",true,8))
{
  new veh=GetPlayerVehicleID(playerid);
  new mode=GetVehicleModel(veh);
  if(model!=420) return SendClientMessage(playerid,0xff00ffaa,"This command cannot be used in this vehicle"); //if the vehicle is not the vehicle you want the command to be used in

//rest of the code
  return 1
}
Reply


Messages In This Thread
How can I make a command for a certain vehicle only? - by TheNuttyScientist - 14.06.2010, 15:57
Re: How can I make a command for a certain vehicle only? - by NewTorran - 14.06.2010, 16:00
Re: How can I make a command for a certain vehicle only? - by DJDhan - 14.06.2010, 16:01
Re: How can I make a command for a certain vehicle only? - by TheNuttyScientist - 14.06.2010, 16:02

Forum Jump:


Users browsing this thread: 1 Guest(s)