26.02.2013, 17:55
UPDATED: Faction system update - now version 3.0.1a
================================================== ====================================
***FACTION SYSTEM:::: any id number from 0+ can be used. Faction -1 is considered to be NO FACTION
- DIVM_SetVehicleFaction(vehicleid, factionid) - returns 1 if successfull and 0 if unsuccessfull
- DIVM_RemoveVehicleFaction(vehicleid) - returns 1 if successfull and 0 if unsuccessfull
- DIVM_GetVehicleFaction(vehicleid) - returns vehicle faction
- DIVM_SetPlayerFaction(playerid, factionid) - returns 1 if successfull and 0 if unsuccessfull
- DIVM_RemovePlayerFaction(playerid) - returns 1 if successfull and 0 if unsuccessfull
- DIVM_GetPlayerFaction(playerid) - returns player faction
================================================== ====================================
When you set a vehicle's faction it will become unbuyable and will only allow access to members of that faction. once you have set a player faction or vehicle faction it will be saved until you remove the faction.
NB: Player must be logged in to set the faction. Vehicles must be DIVM specific vehicles to have faction assigned.
================================================== ====================================
***FACTION SYSTEM:::: any id number from 0+ can be used. Faction -1 is considered to be NO FACTION
- DIVM_SetVehicleFaction(vehicleid, factionid) - returns 1 if successfull and 0 if unsuccessfull
- DIVM_RemoveVehicleFaction(vehicleid) - returns 1 if successfull and 0 if unsuccessfull
- DIVM_GetVehicleFaction(vehicleid) - returns vehicle faction
- DIVM_SetPlayerFaction(playerid, factionid) - returns 1 if successfull and 0 if unsuccessfull
- DIVM_RemovePlayerFaction(playerid) - returns 1 if successfull and 0 if unsuccessfull
- DIVM_GetPlayerFaction(playerid) - returns player faction
================================================== ====================================
When you set a vehicle's faction it will become unbuyable and will only allow access to members of that faction. once you have set a player faction or vehicle faction it will be saved until you remove the faction.
NB: Player must be logged in to set the faction. Vehicles must be DIVM specific vehicles to have faction assigned.