Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new rollactive = 1; // 1- active, 0 - inactive
- CMD:roll(playerid, params[]){
- if(rollactive == 0) return SendClientMessage(playerid, COLOR_WHITE, "Sistemul de roll este dezactivat.");
- if(!IsPlayerInRangeOfPoint(playerid, 10.0, 0.0, 0.0, 0.0)) return SendClientMessage(playerid, COLOR_WHITE, "Nu esti la roll");
- if(playerVariables[playerid][pRollPoints] < 1000) return SendClientMessage(playerid, COLOR_WHITE, "NU AI DESTULE ROLL POINTS"); //Verificam daca are 1k sau peste 1k de puncte.
- new premium = random(2); // 5 = numarul de premii, il modifici in functie de cate premii ai.
- switch(premium){
- case 0:{
- playerVariables[playerid][pMoney] += 100000000000 //Suma pe care vrei sa o castige.
- new string[200]; //variabila pentru text maxim este de 64 de biti adica 1024 de caractere
- format(string,sizeof(string), "(Roll) %s a castigat 69$ la roll. Felicitari!",GetName(playerid));
- SendClientMessageToAll(COLOR_WHITE, string);
- }
- case 1:{
- playerVariables[playerid][pPremiumPoints] += 123412 //Suma pe care vrei sa o castige.
- SendClientMessage(playerid, COLOR_WHITE, "aI CASTIGAT O MUIE!! Feliciatir");
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement