GetVehicleModel
#1

Hello i have made this command to strat the job only if player in vehicle id 414 else it wont but even if i get in vehicle id 414 the job wont work and i get the "You need mule van to start this job" message whats wrong

PHP код:
CMD:clothes(playerid,params[])
{
  if(!
IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Red,"You need Mule van to start this job");
  if(
GetVehicleModel(GetPlayerVehicleID(playerid) == 414))
  {
    
IsJob[playerid] = true;
    
BincoC CreateDynamicCP(2245.5964,-1660.4717,15.2866,3.0,-1,0,playerid,100.0,-1,0);
    
SendClientMessage(playerid,Roz,"{FFFFFF}Deliver the clothes to {FF0000}Binco {FFFFFF}store");
  }
  else
  {
    
SendClientMessage(playerid,Red,"You need Mule van to start this job");
  }
  return 
1;

Reply


Messages In This Thread
GetVehicleModel - by TuNiSiAnO1 - 18.07.2018, 06:35
Re: GetVehicleModel - by iSpark - 18.07.2018, 06:39
Re: GetVehicleModel - by TuNiSiAnO1 - 18.07.2018, 07:08
Re: GetVehicleModel - by SlayerHodge - 18.07.2018, 11:31

Forum Jump:


Users browsing this thread: 1 Guest(s)