07.01.2011, 11:01
Why dosent this work?
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(IsVehicleSportCar(playerid))
{
SendClientMessage(playerid,0x007F0EFF,"You entered a sport car.");
}
return 1;
}
pawn Код:
stock IsVehicleSportCar(playerid)
{
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
if(GetVehicleModel(vehicleid) == 411 || 541 || 451) return 0;
return 0;
}