Jump to content
  • 0

Question

Posted

Salut am si eu doua intrebari

1.Cum fac in asa fel incat cand doi mafioti se lupta (am pus deja scriptul) sa ii ia totii banii (deci vreau doar sa stiu cum pun sa ii ia toti banii de la el)

2.Ce ar trebuii sa pun la o anumita comanda ca sa teleportez la mine toti membrii unei factiuni

2 answers to this question

Recommended Posts

Posted

Defapt,doar prima e o problema GF,a doua e problema de scripting.

la 2 trebuie sa faci un loop si sa verifici daca variabila care salveaza factiunea e la fel cu ce mama dracu ai specificat tu.

[pawn]

if(strcmp(cmd,"/getfromfaction",true) == 0)

{

if(PlayerInfo[playerid][pAdmin]<5)return 1;

new factionID = strval(strtok(cmdtext,idx));

new Float:X,Float:Y,Float:Z;

GetPlayerPos(playerid,X,Y,Z);

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

{

if(IsPlayerConnected(i) && PlayerInfo[playerid][pFaction] == factionID) SetPlayerPos(i,X,Y,Z);

}

return 1;

}

[/pawn]

La 1 cam asa ar trebui sa faci:

Te duci la nenea' Ice Cube, ii dai tributu si tii aranjeaza pe toti :)

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.