14.07.2013, 17:20
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new vehid;
vehid = GetPlayerVehicleID(playerid);
if(vehid == 574)
{
SendClientMessage(playerid, -1, "test");
}
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new vehid;
vehid = GetPlayerVehicleID(playerid);
if(vehid == 574)
{
SendClientMessage(playerid, -1, "test");
}
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new
modelid = GetVehicleModel(vehicleid)
;
if(modelid == 574)
{
SendClientMessage(playerid, -1, "test");
}
return 1;
}
If the player is entering the vehicle he still isnt in the vehicle, GetPlayerVehicleID will return 0
You need to use the vehicleid from the header Also how do you know the exect vehicleid ?, i think you wanted to check for the model pawn Код:
|