SA-MP Forums Archive
[Include] Mafia System by KaSkA3eR(filip128) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Mafia System by KaSkA3eR(filip128) (/showthread.php?tid=292985)



Mafia System by KaSkA3eR(filip128) - KaSkA3eR - 26.10.2011

Hello It's my first include from SA:MP.I'm Polish.I'm eleven.My english is 5+
Mafia System V.1.0
This system will on his mafia.It's simple for handling.System base about Double-O-Files 2(Thanks for Double-O-Seven)
Base added to GameMode with help "new" for exmaple "new Base_PAWN;" or else any was "new basename;"
Functions
Код:
CreateMafia(mafia[])
AddMafiaMember(name[], mafia[])
DeleteMafiaMember(name[], mafia[])
SetMafiaBase(mafia[], Float:X, Float:Y, Float:Z)
IsMafiaOwnerBase(mafia[], basename[])
IsPlayerInMafia(name[], mafia[])
DeleteMafia(mafia[])
SetMafiaColor(mafia[], color[])
SetMafiaSkin(mafia[], skinid)
SetMafiaTag(mafia[], tag[])
SetMafiaLider(name[], mafia[])
SetMafiaViceLider(name[], mafia[])
Download
From:
My Website:http://kaska3er.ugu.pl/upload_files/mafiasystem.inc
Pastebin:http://pastebin.com/aT5zAHTX


Re: Mafia System by KaSkA3eR(filip128) - Ivan_Pantovic - 26.10.2011

Looks really nice, you could add ranks instead of "leader/viceleader" though.
Keep it up .


Re: Mafia System by KaSkA3eR(filip128) - KaSkA3eR - 26.10.2011

Big thanks. This is my first script/include in English language.


Re: Mafia System by KaSkA3eR(filip128) - FireCat - 26.10.2011

Looks cool (:


Re: Mafia System by KaSkA3eR(filip128) - Drakon - 26.10.2011

Only 11? Amazing lol.


Re: Mafia System by KaSkA3eR(filip128) - |_ⒾⓇⓄN_ⒹⓄG_| - 26.10.2011

awesome o.o
really nice!
keep it up


Re: Mafia System by KaSkA3eR(filip128) - [S]trong - 26.10.2011

pawn Код:
IsMafiaOwnerBase(mafia[], basename[])
{
    if(basename[] == mafia[])
}



Re: Mafia System by KaSkA3eR(filip128) - KaSkA3eR - 26.10.2011

For example:
Код:
new YouBase;
YouBase = YouMafia;



Re: Mafia System by KaSkA3eR(filip128) - Double-O-Seven - 26.10.2011

Why didn't you use #include <Double-O-Files_2> instead of copying the whole file..?

Oh, after looking through your code...
It will not work at all...
There's so much wrong with this...

pawn Код:
IsMafiaOwnerBase(mafia[], basename[])
{
        if(basename[] == mafia[]) // What the fuck. This won't work...
}

SetMafiaViceLider(name[], mafia[])
{
    new mafiainfo[64]
    format(mafiainfo,sizeof(mafiainfo),"mafia/%s.info.ini",mafia[]); // You can't use mafia with [] in here...
        dini_Set(mafiainfo, "MafiaViceLider", name[]);
        return 1;
}



Re: Mafia System by KaSkA3eR(filip128) - KaSkA3eR - 26.10.2011

I'm sorry. I don't know.