19.07.2009, 21:38
try this
pawn Код:
cargreen= GetPlayerVehicleID(playerid);//
if(cargreen==greencar && gTeam[playerid]!=TEAM_GREEN )// or your team
{
State=GetPlayerState(playerid);
if(state == PLAYER_STATE_DRIVER)
{
new i;
for(i=0;i<MAX_PLAYERS;i++)
{
if(i != playerid)
{
SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i, 0, 1);
}
}
}
SendClientMessage(playerid,COLOR_RED, "You Are Not in The Green team so, You cannot enter the car");
return 1;
}