Question
#3

Okay here we go.
First of all define the vehicle.
pawn Код:
new faction1;
new faction2;
new faction3;
//ect... how much you need

And then
pawn Код:
faction1 = AddStaticVehicle(model,........);
faction2 = AddStaticVehicle(model,.........);
faction3 = AddStaticVehicle(model,........);
//Ect....
after that
OnPlayerStateChange.

pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
        {
            new vehicleid = GetPlayerVehicleID(playerid);
            if(vehicleid == faction1 && faction[playerid] != FACTIONiD)
            {
                SendClientMessage(playerid, 0xFFFFFFFF, "This vehicle belongs to "Your Faction Name".");
RemovePlayerFromVehicle(playerid);
            }

        }
Add that 3 times on your script.
Reply


Messages In This Thread
Question - by Scriptissue - 02.10.2010, 12:23
Re: Question - by iJumbo - 02.10.2010, 12:26
Re: Question - by Rudyy - 02.10.2010, 12:29
Re: Question - by iJumbo - 02.10.2010, 12:38
Re: Question - by Scriptissue - 02.10.2010, 14:43

Forum Jump:


Users browsing this thread: 1 Guest(s)