Car Problem
#9

Quote:
Originally Posted by Jefff
vehicleid is not ID but Model
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(GetVehicleModel(vehicleid) == 498)
{
SendClientMessage(playerid, COLOR_ORANGE, "== Congrats You Found The Weapon Van!");
GivePlayerWeapon(playerid,37,250);
}
How do you know he wants it to be a Model?, He could just want one van and thats it, Try doing this
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new string[128];
format(string, sizeof(string), "Vehicle ID is: %d", vehicleid);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
Then go in your sever and get in the van and it will tell you the vehicleid, Note it down and check if you are using the right vehicle id
Reply


Messages In This Thread
Car Problem - by CJ101 - 18.02.2009, 23:05
Re: Car Problem - by ICECOLDKILLAK8 - 18.02.2009, 23:06
Re: Car Problem - by CJ101 - 18.02.2009, 23:13
Re: Car Problem - by Daren_Jacobson - 18.02.2009, 23:14
Re: Car Problem - by CJ101 - 18.02.2009, 23:17
Re: Car Problem - by Daren_Jacobson - 18.02.2009, 23:20
Re: Car Problem - by CJ101 - 18.02.2009, 23:25
Re: Car Problem - by Jefff - 19.02.2009, 00:21
Re: Car Problem - by ICECOLDKILLAK8 - 19.02.2009, 00:45

Forum Jump:


Users browsing this thread: 1 Guest(s)