Jump to content
  • 0

O comanda care sa dea la fiecare membru dintro factiun ceva


Question

Posted

Deci dupa cum spune si titlul as vrea ca la comanda

[pawn] if(strcmp(cmdtext, "/taketurf", true) == 0)

{

if(IsPlayerInTurf(playerid))

        {

      if (PlayerToPoint(300, playerid, 2533.0771,-1664.6176,15.1666))

        {

Grove_Street = GangZoneCreate(2425.363, -1733.182, 2524.237, -1634.489);

                        SaveGangZones();

GangZoneShowForPlayer(playerid, Grove_Street, 0x00FF0096);

                        GangZoneFlashForAll(playerid, 0xAA3333AA);

                        SetTimer("warover", 6000, 0);

}

else

{

SendClientMessage(playerid, COLOR_RED, " ** Nu sunteti la un point war ! **");

            return 1;

}

    }

[/pawn]

Dupa ce cucereste un membru al factiuni acel point sa le dea la toti din factiune nu doar lui bani etc

Cum as putea face? :shocked:

4 answers to this question

Recommended Posts

Posted

[pawn]for(new i=0; i < MAX_PLAYERS; i++)

  {

if(IsPlayerConnected(i))

{

if(PlayerInfo[pMember] == 2||PlayerInfo[pLeader] == 2)

{//2 = id factiune[/pawn]

mai departe sper ca stii ..

Posted

Eu vrea sa le dea cand cucereste acel point dupa ce il cucereste!

Eu am sa dea doar membrului care il cucereste cum fac sa dea la toti?din factiune

Ceea ce miai dat tu nu cred ca  e buna

Posted

[pawn]public warover()

{

for(new i = 0; i < MAX_PLAYERS; i++)

{

        SendClientMessageToAll(COLOR_RED, " ** The turf has been captured ! "); // This will show's everyone the message that the turf has been captured

GivePlayerMoney(i, 50000); // The money the player will get after getting the turf

        SendClientMessage(i, COLOR_GREEN, " You managed to get away with $50,000 and a couple guns !"); // The message

GivePlayerWeapon(i, 23, 80); // The wepeaon the player will get

GivePlayerWeapon(i, 28, 2000); // Another weapon the player will get

GangZoneDestroy(Grove_Street); // It will destroy the gangzone

        GangZoneDestroy(Garage_Gang); // ;;

        GangZoneDestroy(Ballaz_Gang);// ;;

    }

}[/pawn]

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.