13.03.2013, 15:34
Try this.
You are telling it to check LSPDvehicles at the cell number "vid".
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
//get vehicle id
new vid;
vid = GetVehicleModel(vehicleid);
//check for factions
for(new i = 0; i <= 7; i++)
{
if(vehicleid == LSPDvehicles[i])
{
SendClientMessage(playerid, -1, "police car");
}
}
return 1;
}