[Include] Mafia System by KaSkA3eR(filip128)
#1

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
Reply
#2

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

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

Looks cool (:
Reply
#5

Only 11? Amazing lol.
Reply
#6

awesome o.o
really nice!
keep it up
Reply
#7

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

For example:
Код:
new YouBase;
YouBase = YouMafia;
Reply
#9

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;
}
Reply
#10

I'm sorry. I don't know.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)