Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:opencrate(playerid, params[])
- {
- if(pInfo[playerid][pScore] < 3) return SCM(playerid, COLOR_ERROR, "Nu ai nivelul neceser pentru a folosi aceasta comanda.");
- if(!IsPlayerInRangeOfPoint(playerid, 7.0,155.6681,-1966.2190,3.5834)) return SCM(playerid, COLOR_ERROR, "Nu esti la locatia potrivita.");
- switch(random(4))
- {
- case 0:
- {
- GiveMoney(playerid, 902000);
- SCM(playerid, COLOR_SUCCES, "Ai castigat: 902000$ din (Legendary Crate).");
- }
- case 1:
- {
- GiveMoney(playerid, 1010000);
- SCM(playerid, COLOR_SUCCES, "Ai castigat: 1010000$ din (Legendary Crate).");
- }
- case 2:
- {
- GiveMoney(playerid, 1010000);
- SCM(playerid, COLOR_SUCCES, "Ai castigat: 1010000$ din (Legendary Crate).");
- }
- case 3:
- {
- GiveMoney(playerid, 2100000);
- SCM(playerid, COLOR_SUCCES, "Ai castigat: 2100000$ din (Legendary Crate).");
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment