Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2018
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. YCMD:buyphoneandcredit(playerid, params[], help) {
  2. if(PlayerInfo[playerid][pPhone] != 0) return SCM(playerid, -1, "Ai deja un telefon.");
  3. if(PlayerInfo[playerid][pCredit] > 1000) return SCM(playerid, -1, "Credit maxim ~1000.");
  4. PlayerInfo[playerid][pPhone] = 1;
  5. Update(playerid, pPhonex);
  6. PlayerInfo[playerid][pCredit] += 100;
  7. Update(playerid, pCreditx);
  8. new randphone = 10000 + random(9999);
  9. PlayerInfo[playerid][pNumber] = randphone;
  10. Update(playerid, pNumberx);
  11. SCMEx(playerid, -1, "You have purchased a cell phone and 100 credits! Your number is %d.", PlayerInfo[playerid][pNumber]);
  12. return 1;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement