CARS + TEAMS
#3

I dont use OnPlayerEnterVehicle i use OnPlayerStateChange

pawn Код:
OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == w/e model)
{
if(gTeam[playerid] != Team_Cop)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, w/e color, "You are not a cop");
return 1;
}
}
}
return 1;
}
Reply


Messages In This Thread
CARS + TEAMS - by kLx - 06.02.2009, 14:48
Re: CARS + TEAMS - by Soeren - 06.02.2009, 18:41
Re: CARS + TEAMS - by ICECOLDKILLAK8 - 06.02.2009, 21:00
Re: CARS + TEAMS - by kLx - 07.02.2009, 08:48
Re: CARS + TEAMS - by kLx - 07.02.2009, 14:27
Re: CARS + TEAMS - by Peter_Corneile - 10.04.2009, 13:15
Re: CARS + TEAMS - by Taz86 - 10.04.2009, 13:28

Forum Jump:


Users browsing this thread: 1 Guest(s)