Getplayervehicle :S
#8

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;
}
Reply


Messages In This Thread
Getplayervehicle :S - by Criss_Angel - 19.07.2009, 20:29
Re: Getplayervehicle :S - by Criss_Angel - 19.07.2009, 20:33
Re: Getplayervehicle :S - by Weirdosport - 19.07.2009, 20:38
Re: Getplayervehicle :S - by Criss_Angel - 19.07.2009, 20:39
Re: Getplayervehicle :S - by boelie - 19.07.2009, 20:40
Re: Getplayervehicle :S - by Criss_Angel - 19.07.2009, 20:42
Re: Getplayervehicle :S - by Criss_Angel - 19.07.2009, 21:21
Re: Getplayervehicle :S - by HuRRiCaNe - 19.07.2009, 21:38
Re: Getplayervehicle :S - by Criss_Angel - 19.07.2009, 22:16
Re: Getplayervehicle :S - by Jefff - 19.07.2009, 23:09

Forum Jump:


Users browsing this thread: 1 Guest(s)