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