- 0
Ajutor sistem
-
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
Mihail.[]
Cum pot adauga la comanda asta o animatie de a deschide o cutie si o cutie , si dupa ce primesti premium sa nu mai fie animatia si cutia
CMD:opencase(playerid, params[]) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pCase] >= 1) { if(PlayerInfo[playerid][pKeyCase] >= 1) { new cadou = random(12)+2; ApplyAnimation(playerid,"CARRY","crry_prtial",4.0,1,0,0,1,1,1); if(cadou == 1) { new amount1; amount1 = 10000 + random(10000); GivePlayerCash(playerid, amount1); Update(playerid, pCashx); new amount2; amount2 = 1 + random(1); PlayerInfo[playerid][pCase] -= 1; PlayerInfo[playerid][pKeyCase] -= 1; Update(playerid, pCasex); Update(playerid, pKeyCasex); new gift[128]; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(gift, sizeof(gift),"* %s a a deschis o cutie si a primit! [$%s]",name,FormatNumber(amount1),FormatNumber(amount2)); ProxDetector(10.0, playerid, gift,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); GameTextForPlayer(playerid, "~r~Ghinion", 5000, 1); return 1; } if(cadou == 2) { new amount3; amount3 = 20000 + random(10000); GivePlayerCash(playerid, amount3); Update(playerid, pCashx); new amount4; amount4 = 2 + random(2); PlayerInfo[playerid][pExp] += amount4; Update(playerid, pRP); PlayerInfo[playerid][pCase] -= 1; PlayerInfo[playerid][pKeyCase] -= 1; Update(playerid, pCasex); Update(playerid, pKeyCasex); new gift[128]; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(gift, sizeof(gift),"* %s a a deschis o cutie si a primit! [$%s si %s respect points]",name,FormatNumber(amount3),FormatNumber(amount4)); ProxDetector(10.0, playerid, gift,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); return 1; } if(cadou == 3) { new amount5; amount5 = 4000 + random(20000); GivePlayerCash(playerid, amount5); Update(playerid, pCashx); new amount6; amount6 = 1 + random(1); PlayerInfo[playerid][pHiddenColor] += amount6; Update(playerid, pHiddenColorx); PlayerInfo[playerid][pCase] -= 1; PlayerInfo[playerid][pKeyCase] -= 1; Update(playerid, pCasex); Update(playerid, pKeyCasex); new gift[128]; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(gift, sizeof(gift),"* %s a a deschis o cutie si a primit! [$%s si %s hidden points]",name,FormatNumber(amount5),FormatNumber(amount6)); ProxDetector(10.0, playerid, gift,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); GameTextForPlayer(playerid, "~g~Noroc", 5000, 1); return 1; } if(cadou == 4) { new amount7; amount7 = 50000 + random(15000); GivePlayerCash(playerid, amount7); Update(playerid, pCashx); new amount8; amount8 = 1 + random(3); PlayerInfo[playerid][pRob] += amount8; Update(playerid, pRobx); PlayerInfo[playerid][pCase] -= 1; PlayerInfo[playerid][pKeyCase] -= 1; Update(playerid, pCasex); Update(playerid, pKeyCasex); new gift[128]; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(gift, sizeof(gift),"* %s a a deschis o cutie si a primit! [$%s si %s rob points]",name,FormatNumber(amount7),FormatNumber(amount8)); ProxDetector(10.0, playerid, gift,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); GameTextForPlayer(playerid, "~r~Ghinion", 5000, 1); return 1; } if(cadou == 5) { new amount9; amount9 = 40000 + random(50000); GivePlayerCash(playerid, amount9); Update(playerid, pCashx); new amount10; amount10 = 1 + random(2); PlayerInfo[playerid][pCase] -= 1; PlayerInfo[playerid][pKeyCase] -= 1; Update(playerid, pCasex); Update(playerid, pKeyCasex); new gift[128]; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(gift, sizeof(gift),"* %s a a deschis o cutie si a primit! [$%s]",name,FormatNumber(amount9),FormatNumber(amount10)); ProxDetector(10.0, playerid, gift,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); GameTextForPlayer(playerid, "~y~Briliant", 5000, 1); return 1; } if(cadou == 6) { new amount1; amount1 = 20000 + random(70000); GivePlayerCash(playerid, amount1); Update(playerid, pCashx); PlayerInfo[playerid][pCase] -= 1; PlayerInfo[playerid][pKeyCase] -= 1; Update(playerid, pCasex); Update(playerid, pKeyCasex); new gift[128]; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(gift, sizeof(gift),"* %s a a deschis o cutie si a primit! [$%s]",name,FormatNumber(amount1)); ProxDetector(10.0, playerid, gift,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); GameTextForPlayer(playerid, "~y~Briliant", 5000, 1); return 1; } if(cadou == 7) { new amount2; amount2 = 2 + random(2); PlayerInfo[playerid][pCase] -= 1; PlayerInfo[playerid][pKeyCase] -= 1; Update(playerid, pCasex); Update(playerid, pKeyCasex); new gift[128]; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(gift, sizeof(gift),"* %s a a deschis o cutie si a primit! [Nimic]",name,FormatNumber(amount2)); ProxDetector(10.0, playerid, gift,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); return 1; } if(cadou == 8) { new amount10; amount10 = 5000 + random(50000); GivePlayerCash(playerid, amount10); Update(playerid, pCashx); new amount22; amount22 = 1 + random(2); PlayerInfo[playerid][pExp] += amount22; Update(playerid, pRP); new amount33; amount33 = 2 + random(2); PlayerInfo[playerid][pCase] -= 1; PlayerInfo[playerid][pKeyCase] -= 1; Update(playerid, pCasex); Update(playerid, pKeyCasex); new gift[128]; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(gift, sizeof(gift),"* %s a a deschis o cutie si a primit! [$%s, %s respect points]",name,FormatNumber(amount10),FormatNumber(amount22),FormatNumber(amount33)); ProxDetector(10.0, playerid, gift,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); GameTextForPlayer(playerid, "~b~Moderat", 5000, 1); return 1; } if(cadou == 9) { new amount11; amount11 = 5000 + random(50000); GivePlayerCash(playerid, amount11); Update(playerid, pCashx); new amount23; amount23 = 1 + random(3); PlayerInfo[playerid][pRob] += amount23; Update(playerid, pRobx); PlayerInfo[playerid][pCase] -= 1; PlayerInfo[playerid][pKeyCase] -= 1; Update(playerid, pCasex); Update(playerid, pKeyCasex); new gift[128]; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(gift, sizeof(gift),"* %s a a deschis o cutie si a primit! [$%s si %s rob points]",name,FormatNumber(amount11),FormatNumber(amount23)); ProxDetector(10.0, playerid, gift,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); GameTextForPlayer(playerid, "~b~Moderat", 5000, 1); return 1; } } else { SCM(playerid, -1, "Nu detii o cheie!"); return 1; } } else { SCM(playerid, -1, "Nu detii o cutie!"); return 1; } } return 1; }1 answer 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