Advertisement
Guest User

Untitled

a guest
Aug 10th, 2018
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. CMD:oplace(playerid, params[])
  2. {
  3. if(gPlayerLogged[playerid] == 0) return SCM(playerid, COLOR_LIGHTRED, "Nu esti logat.");
  4. if(PlayerInfo[playerid][pAdmin] < 3) return SCM(playerid,COLOR_ERROR, AdminOnly);
  5. if(eventobjects > 9) return SCM(playerid,COLOR_WHITE,"{FFB870}Nu poti pune mai mult de 10 obiecte.");
  6. new objectid,prize,sendername[30],Float:pX,Float:pY,Float:pZ,string[128];
  7. if(sscanf(params, "dd",objectid,prize))
  8. {
  9. SendClientMessage(playerid, COLOR_WHITE, "{25FDE9}Scrie: {25FDE9}/oplace <ObjectID> <Prize>");
  10. SendClientMessage(playerid, COLOR_WHITE,"[OBJECTS] Cadou: 19054 - 19058 | Glob craciun: 19059 - 19063 | Oua paste: 19341 - 19345 | Balon: 19332 - 19338");
  11. return 1;
  12. }
  13. if(prize < 500000 || prize > 30000000) return SendClientMessage(playerid, COLOR_WHITE, "Prize must be between $500.000 and $30.000.000.");
  14. GetPlayerName(playerid, sendername, sizeof(sendername));
  15. GetPlayerPos(playerid,pX,pY,pZ);
  16. eventobjects++;
  17. objectevent[eventobjects] = CreatePickup(objectid, 2, pX+2,pY,pZ, -1);
  18. eventprizeobj[eventobjects] = prize;
  19. Adminlog(string);
  20. return 1;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement