Jump to content
  • 0

oplace


Zeca

Question

2 answers to this question

Recommended Posts

  • 0

daca doresti comanda oplace uite-o:

Spoiler

CMD:oplace(playerid, params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first.");
    if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, COLOR_LIGHTGREEN3, AdminOnly);
    if(eventobjects > 9) return SendClientMessage(playerid, COLOR_WHITE, "All objects are being used. Max hidden objects: 10.");
    new objectid,prize,sendername[30],Float:pX,Float:pY,Float:pZ,string[128];
    if(sscanf(params, "dd",objectid,prize))
    {
        SendClientMessage(playerid, COLOR_GREY,"Syntax:{FFFFFF} /oplace [object] [prize]");
        SendClientMessage(playerid, COLOR_WHITE,"[OBJECTS] Cadou: 19054 - 19058 | Glob craciun: 19059 - 19063 | Oua paste: 19341 - 19345");
        return 1;
    }
    if(prize < 50000 || prize > 10000000) return SendClientMessage(playerid, COLOR_WHITE, "Prize must be between $50,000 and $10,000,000.");
    GetPlayerName(playerid, sendername, sizeof(sendername));
    GetPlayerPos(playerid,pX,pY,pZ);
    eventobjects++;
    objectevent[eventobjects] = CreatePickup(objectid, 1, pX,pY,pZ, -1);
    eventprizeobj[eventobjects] = prize;
    format(string,sizeof(string),"Admin %s[admin:%d] started an event. Object: %d, prize: $%s.",sendername,PlayerInfo[playerid][pSQLID],objectid,FormatNumber(prize));
    ABroadCast(COLOR_COOLRED, string, 1);
    Log(PlayerInfo[playerid][pSQLID], string, "oplace");
    Adminlog(PlayerInfo[playerid][pSQLID], string, "oplace");
    return 1;

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.