18.02.2009, 23:05
Код:
if GetPlayerVehicleID(playerid) == 498 *then { SendClientMessage(playerid, COLOR_ORANGE, "== Congrats You Found The Weapon Van!"); GivePlayerWeapon(playerid,37,250); }
doesnt do anything when they get in the van.
if GetPlayerVehicleID(playerid) == 498 *then { SendClientMessage(playerid, COLOR_ORANGE, "== Congrats You Found The Weapon Van!"); GivePlayerWeapon(playerid,37,250); }
if (GetPlayerVehicleID(playerid) == 498)
{
SendClientMessage(playerid, COLOR_ORANGE, "== Congrats You Found The Weapon Van!");
GivePlayerWeapon(playerid,37,250);
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if (GetPlayerVehicleID(playerid) == 498) { SendClientMessage(playerid, COLOR_ORANGE, "== Congrats You Found The Weapon Van!"); GivePlayerWeapon(playerid,37,250); }
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
print("hmm");
if (vehicleid == 498)
{
SendClientMessage(playerid, COLOR_ORANGE, "== Congrats You Found The Weapon Van!");
GivePlayerWeapon(playerid, 37, 250);
}
print("very interesting");
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(GetVehicleModel(vehicleid) == 498) { SendClientMessage(playerid, COLOR_ORANGE, "== Congrats You Found The Weapon Van!"); GivePlayerWeapon(playerid,37,250); }
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); } |
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new string[128];
format(string, sizeof(string), "Vehicle ID is: %d", vehicleid);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}