[Include] [INC] Salmon Functions - sfunc.inc Version 1.01
#5

Quote:
Originally Posted by Blauwbek
what functions? kick players out of a cop car?
This should remove anyone from a cop car if they are on the TEAM_CRIMS team
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);
}
}
}
}
but add
pawn Код:
new gTeam[MAX_PLAYERS];
to the top of your script

Reply


Messages In This Thread
[INC] Salmon Functions - sfunc.inc Version 1.01 - by Salmon - 18.02.2009, 01:39
Re: [INC] Salmon Functions - sfunc.inc - by Blauwbek - 18.02.2009, 12:59
Re: [INC] Salmon Functions - sfunc.inc - by SilentMouse - 18.02.2009, 13:02
Re: [INC] Salmon Functions - sfunc.inc - by harrold - 18.02.2009, 13:05
Re: [INC] Salmon Functions - sfunc.inc - by Salmon - 18.02.2009, 20:16

Forum Jump:


Users browsing this thread: 1 Guest(s)