- 0
Intrare in checkpoint cu un obiect
-
Similar Content
-
- 10 answers
- 1,763 views
-
- 8 replies
- 732 views
-
- 12 replies
- 448 views
-
- 1 reply
- 1,870 views
-
- 2 replies
- 374 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
Buckzor
Salut, incerc sa fac ca atunci cand intri in Checkpoint cu un anumit obiect sa iti dea banii si daca nu ai obiectul sa nu iti dea banii. Am reusit sa fac asta dar daca intru fara acel obiect in Checkpoint , Checkpoint-ul dispare.. as vrea sa fac sa nu dispara checkpoint-ul si sa imi afiseze un mesaj ca trebuie sa am acel obiect in mana pentru a continua.
if(CpZiar[playerid] == 1) { if(IsPlayerAttachedObjectSlotUsed(playerid,6)) { new rand, money, exp, string[256]; money = 15000 + random(5000); exp = 3 + random(3); PlayerInfo[playerid][pMoney] += money; GivePlayerMoneyEx(playerid, money); PlayerInfo[playerid][pExp] += exp; MoneyEarned[playerid] += money; PlayerInfo[playerid][pMoney] += money; UpdateVariable(playerid, pMoneyx); UpdateVariable(playerid, pExpx); format(string, sizeof(string), "(Job): {ffffff}Ai primit %d puncte de experienta.", exp); SendClientMessage(playerid, 0x00e1edFF, string); rand = random(sizeof(RandomZiar)); SetPlayerCheckpoint(playerid, RandomZiar[rand][0], RandomZiar[rand][1], RandomZiar[rand][2], 2.0); format(string, sizeof(string), "Informatii Job~n~~n~Ai castigat: $%s~n~Castig Total: $%s", FormatNumber(money), FormatNumber(MoneyEarned[playerid])); PlayerTextDrawSetString(playerid, JobTD[6], string); PlayerTextDrawShow(playerid, JobTD[6]); SetPVarInt(playerid, "InHand", 0); SetPlayerSpecialAction(playerid, 0); RemovePlayerAttachedObject(playerid, 6); ClearAnimations(playerid); } }
Link to comment
Share on other sites
18 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.