16.12.2009, 14:49
Faction System
What?
Many people want to make their own RolePlay Script but dont know how to make
a Faction System. So i created one. Its really easy, ive added a lot of comment in the script.
So just read and you know how to use it.
How does it works (For Expiernced Scripter)
Ive created one Variable (new Faction[MAX_PLAYERS]
Then save it with DUDB at OnPlayerConnect and OnPlayerDisConnect.
I create a command:
Download (PasteBin)
http://pastebin.com/f48f1c905
Oxside
What?
Many people want to make their own RolePlay Script but dont know how to make
a Faction System. So i created one. Its really easy, ive added a lot of comment in the script.
So just read and you know how to use it.
How does it works (For Expiernced Scripter)
Ive created one Variable (new Faction[MAX_PLAYERS]
Then save it with DUDB at OnPlayerConnect and OnPlayerDisConnect.
I create a command:
Код:
if (strcmp("/joinfaction", cmdtext, true, 10) == 0) { // Copy this command as much as you want and edit it to create multiple join faction command SendClientMessage(playerid, COLOR_RED, "* You joined faction 1"); Faction[playerid] = 1; // << With this we set Faction ID to 1, change 1 to any Faction ID return 1; }
http://pastebin.com/f48f1c905
Oxside