02.10.2010, 12:29
Okay here we go.
First of all define the vehicle.
And then
after that
OnPlayerStateChange.
Add that 3 times on your script.
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....
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);
}
}