- 0
Intrare in checkpoint cu un obiect
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
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); } }18 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now