Jump to content
  • 0

problema pickup-uri


SiNuS

Question

Salut

problema pe care am intampinat-o este urmatoarea:

Pe server am eventul Money Bag , in gamemode  si ca FS , dropgun , acel FS care atunci cand cineva moare ii cad armele , etc , stiti despre ce e vorba

Dar atunci cand ii cad armele cuiva , cand iau una din acele arme , apare ca si acum am luat sacul cu bani , de exemplu , lui X ii cade deagle pe jos dupa ce moare , si cand iau deagle-ul apare pe chat ca am gasit sacul cu bani

Nu imi explic cum as putea remedia problema fara sa scot Money bag sau dropgun

userbar6.jpg
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Cred ca ai eroruri sau warnning..Sau cel mai probabil ele fiind comune au si codurile comune si se confunda intre ele incearca sa le schimbi sau nu stiu.. aratene liniile de la sacul cu bani si armele acelea :undecided:

[glow=red,2,300]DACA DORITI MAI MULTE INFORMATII VA ROG SA MA CONTACTATI !![/glow]

Link to comment
Share on other sites

In gamemode legat de moneybag la OnPlayerPickUpPickup

[pawn]

if(pickupid == MoneyBagPickup)

{

new string[180], pname[24], money = MoneyBagCash;

GetPlayerName(playerid, pname, 24);

format(string, sizeof(string), "** {99FFFF}%s{FFFFFF} a gasit {33FF66}sacul cu bani{FFFFFF} in valoare de {33FF00}$%d {FFFFFF}zona: %s", pname, money, MoneyBagLocation);

MoneyBagFound = 1;

SendClientMessageToAll(-1, string);

DestroyPickup(MoneyBagPickup);

SendClientMessage(playerid, -1, "Ai gasit sacul cu bani!");

GivePlayerMoney(playerid, money);

}[/pawn]

Si in dropgun:

[pawn]OnWeaponDropPickup(playerid, pickupid);[/pawn]

userbar6.jpg
Link to comment
Share on other sites

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.