02.10.2010, 12:23
I made a Faction script, It works, I used Dini thingy, I don't know how to add to the faction vehicles, can any one help with that ? that only belongs to the Faction.
new faction1;
new faction2;
new faction3;
//ect... how much you need
faction1 = AddStaticVehicle(model,........);
faction2 = AddStaticVehicle(model,.........);
faction3 = AddStaticVehicle(model,........);
//Ect....
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);
}
}
SetPVarInt(playerid, "FACTION",dini_Int(file,"FACTION"));
if(GetPVarInt(playerid, "FACTION") == 1)
{