07.08.2013, 10:33
If you choose to use @-Prodigy- way, change it to
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
new carid = GetPlayerVehicleID(playerid);
if(PlayerInfo[playerid][Faction] == 1) {
for(new i = 0; i < sizeof(LSPD); i++)
{
if(carid == LSPD[i])
{
RemovePlayerFromVehicle(playerid);
SendErrorMessage(playerid, "You can't enter in the police cars");
break;
}
}
}
}
return 1;
}