25.10.2012, 17:07
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == 2)
{
new CarCheck = GetPlayerVehicleID(playerid);
if(CarCheck == Cars[TEAM_BALLAS])
{
if(GetPlayerTeam(playerid) != TEAM_BALLAS) return SendClientMessage(playerid,COLOR_RED,"This is only for Ballas members!");
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "You Don't have the keys for this car!");
return 1;
}
}