Jump to content
  • 0

[GF/RP] Cerere tutorial


Question

Posted

Deci vreau sa fac pe srver cand un membru/leader dintr-o mafie omoara alt player din alta mafie cel omor sa i se scada 5 k de ex

si ce-l care la omorat sa i dea 5k

si invers

vreau si io exemplu pentru 2 factiuni dupa pot face si io

multumesc

2 answers to this question

Recommended Posts

Posted

Daca te referi la asa ceva, uite, am eu un exemplu.

[pawn]if(PlayerInfo[killerid][pMember] == 5 || PlayerInfo[killerid][pLeader] == 5)

{

if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)

{

            new killer[MAX_PLAYER_NAME];

            GetPlayerName(killerid, killer, sizeof(killer));

            format(string,128,"* %s The Mafia a omorat pe %s TheTriads si a primit 1500$.",killer,name);

            SendMAFIAMessage(COLOR_1GREEN, string);

            scoreteam1 += 1;

            format(string,128,"* %s TheTriads a fost omorat de %s The Mafia.",name,killer);

            SendTRIADSMessage(COLOR_1BLUE, string);

        GivePlayerMoney(killerid, 1500);

        scoreteam2 -= 1;

        return 1;

        }

}[/pawn]

Si faci tot asa pentru fiecare mafie in parte.....nu uita sa definesti ce nu ai. Etc, sper ca te descurci!

P.S: Am dat un exemplu.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.