Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- YCMD:buyphoneandcredit(playerid, params[], help) {
- if(PlayerInfo[playerid][pPhone] != 0) return SCM(playerid, -1, "Ai deja un telefon.");
- if(PlayerInfo[playerid][pCredit] > 1000) return SCM(playerid, -1, "Credit maxim ~1000.");
- PlayerInfo[playerid][pPhone] = 1;
- Update(playerid, pPhonex);
- PlayerInfo[playerid][pCredit] += 100;
- Update(playerid, pCreditx);
- new randphone = 10000 + random(9999);
- PlayerInfo[playerid][pNumber] = randphone;
- Update(playerid, pNumberx);
- SCMEx(playerid, -1, "You have purchased a cell phone and 100 credits! Your number is %d.", PlayerInfo[playerid][pNumber]);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement