10.04.2009, 21:58
Hi,
Ich hab mich mal ran gesetzt und eine Gang-Include geschrieben.
Installation:
1.Download the include at the end of the thread.
2.Put it in the include folder of Pawno.
3.Create 2 new folders in your "Scriptfiles" folder .First the folder gangs and in the folder "gangs" the folder "members".
4.Let's go with scripting.
Little info:
bevor starting make this at the topic of the script
Funktions + Examples:
CreateGang(GangName,owner);
PutPlayerInGang(PlayerName,GangID);
LoadGangMember(id); //This put under OnGameModeInit that Members would load
LoadGang(id);//This put under OnGameModeInit that the gangs would load
GetPlayerGang(playerid);
SetGangName(GangID,NewGangName);
SetGangOwner(GangID,NewOwnerName);
IsPlayerInGang(playerid);
IsPlayerGangOwner
by bugs or other things PM me thx.
Thanks to Tommy for his help to make me possible to do this.
Downloads:
1.0:
WebSpace:http://wolgta.bplaced.de/lol/1.0/gang-sys.inc(rightklick and then save under)
MFG Pillepalle and have fun with it
Ich hab mich mal ran gesetzt und eine Gang-Include geschrieben.
Installation:
1.Download the include at the end of the thread.
2.Put it in the include folder of Pawno.
3.Create 2 new folders in your "Scriptfiles" folder .First the folder gangs and in the folder "gangs" the folder "members".
4.Let's go with scripting.
Little info:
bevor starting make this at the topic of the script
Код:
#define MAX_GANG_MEMBER_DATA 1024 #define MAX_GANGS 128
Funktions + Examples:
CreateGang(GangName,owner);
PutPlayerInGang(PlayerName,GangID);
LoadGangMember(id); //This put under OnGameModeInit that Members would load
LoadGang(id);//This put under OnGameModeInit that the gangs would load
GetPlayerGang(playerid);
SetGangName(GangID,NewGangName);
SetGangOwner(GangID,NewOwnerName);
IsPlayerInGang(playerid);
IsPlayerGangOwner
by bugs or other things PM me thx.
Thanks to Tommy for his help to make me possible to do this.
Downloads:
1.0:
WebSpace:http://wolgta.bplaced.de/lol/1.0/gang-sys.inc(rightklick and then save under)
MFG Pillepalle and have fun with it