SHARE
TWEET

Untitled

a guest Apr 23rd, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. new rollactive = 1; // 1- active, 0 - inactive
  2. CMD:roll(playerid, params[]){
  3.     if(rollactive == 0) return SendClientMessage(playerid, COLOR_WHITE, "Sistemul de roll este dezactivat.");
  4.     if(!IsPlayerInRangeOfPoint(playerid, 10.0, 0.0, 0.0, 0.0)) return SendClientMessage(playerid, COLOR_WHITE, "Nu esti la roll");
  5.     if(playerVariables[playerid][pRollPoints] < 1000) return SendClientMessage(playerid, COLOR_WHITE, "NU AI DESTULE ROLL POINTS"); //Verificam daca are 1k sau peste 1k de puncte.
  6.     new premium = random(2); // 5 = numarul de premii, il modifici in functie de cate premii ai.
  7.     switch(premium){
  8.         case 0:{
  9.             playerVariables[playerid][pMoney] += 100000000000 //Suma pe care vrei sa o castige.
  10.  
  11.             new string[200]; //variabila pentru text maxim este de 64 de biti adica 1024 de caractere
  12.             format(string,sizeof(string), "(Roll) %s a castigat 69$ la roll. Felicitari!",GetName(playerid));
  13.             SendClientMessageToAll(COLOR_WHITE, string);
  14.         }
  15.         case 1:{
  16.             playerVariables[playerid][pPremiumPoints] += 123412 //Suma pe care vrei sa o castige.
  17.             SendClientMessage(playerid, COLOR_WHITE, "aI CASTIGAT O MUIE!! Feliciatir");
  18.         }
  19.     }
  20.  
  21.     return 1;
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top