[HELP]CAR MISSION
#5

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(vehicleid == 123) // Switch 123 to your vehicle ID
    {
        if(gTeam[playerid] == TEAM_COP) // or GetPlayerTeam
        {
            new Float:X, Float:Y, Float:Z;
            GetPlayerPos(playerid,X,Y,Z);
            SetPlayerPos(playerid,X+2,Y,Z);
            SendClientMessage(playerid,COLOR,"You are cop. You must defend this vehicle from stealers!");
            return 1;
        }
        else
        {
            return 1;
        }
    }
    return 1;
}
Test this one now.
Reply


Messages In This Thread
[HELP]CAR MISSION - by [Aka]Dragonu - 03.03.2011, 19:25
Re: [HELP]CAR MISSION - by [Aka]Dragonu - 04.03.2011, 20:38
Re: [HELP]CAR MISSION - by Marricio - 04.03.2011, 20:43
Re: [HELP]CAR MISSION - by [Aka]Dragonu - 04.03.2011, 21:01
Re: [HELP]CAR MISSION - by Marricio - 04.03.2011, 21:09
Re: [HELP]CAR MISSION - by [Aka]Dragonu - 05.03.2011, 06:53
Re: [HELP]CAR MISSION - by Th3Angel - 05.03.2011, 07:08
Re: [HELP]CAR MISSION - by [Aka]Dragonu - 05.03.2011, 07:11
Re: [HELP]CAR MISSION - by [Aka]Dragonu - 05.03.2011, 13:20
Re: [HELP]CAR MISSION - by [Aka]Dragonu - 29.08.2011, 10:20

Forum Jump:


Users browsing this thread: 1 Guest(s)