18.02.2009, 20:16
Quote:
Originally Posted by Blauwbek
what functions? kick players out of a cop car?
![]() |
pawn Код:
public OnPlayerStateChange(playerid,newstate,oldstate)
{
if(gTeam[playerid] == TEAM_CRIMS)
{
if(newstate == 2)
{
if(IsInCopCar(playerid))
{
SendClientMessage(playerid, COLOR_RED,"You may not use this car.");
RemovePlayerFromVehicle(playerid);
}
}
}
}
pawn Код:
new gTeam[MAX_PLAYERS];