23.12.2009, 22:33
Hi,
I have a privatecars code, And its letting any team drive the sfpd cars,
It dosent say the message or kick them out the vehicle,
I have a privatecars code, And its letting any team drive the sfpd cars,
It dosent say the message or kick them out the vehicle,
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT)
{
if(vehicleid == cruiser1 || vehicleid == cruiser2 || vehicleid == cruiser3 || vehicleid == cruiser4 || vehicleid == cruiser5 || vehicleid == cruiser6 || vehicleid == cruiser7 || vehicleid == cruiser8)
{
if(gTeam[playerid] != TEAM_COP)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "This vehicle belongs to the San Fierro Police Department.");
}
}
}
return 1;
}