Jump to content
  • 0

Problema compilare COMANDA..


namerz

Question

7 answers to this question

Recommended Posts

Asta-i comanda

CMD:setspree(playerid, params[])
{
    if(IsPlayerAdmin(playerid))
    {
        new string[128];
        //----------------------------------------------------------------------
        if(sscanf(params, "ud", giveplayerid1, amount2)) return
        SendClientMessage(playerid, orange, "Usage : /setspree [playerid] [Spree]") &&
        SendClientMessage(playerid, LIGHTBLUE2, "Function: Will set the Spree of a specified player!");
        //----------------------------------------------------------------------
        else if(giveplayerid1 == INVALID_PLAYER_ID) return
        SendClientMessage(playerid, red, "ERROR: Player not connected!");
        //----------------------------------------------------------------------
        else
        {
            SendCommandToAdmins(playerid, "SetSpree");
            format(string, 128, "Administrator \"%s\" has setted your Spree to %d", PlayerName2(playerid), amount2);
            SendClientMessage(giveplayerid1, blue, string);
            format(string, 128, "You have succesfully setted %s Spree to %d!", PlayerName2(giveplayerid1), amount2);
            SendClientMessage(playerid, 0x00BBF6AA, string);
            format(string, 128, "*** Administrator %s has Setted %s the ammount of Spree to %d!", PlayerName2(playerid), PlayerName2(giveplayerid1), amount2);
            SaveIn("AdminLog", string);
            pinfo[giveplayerid1][BKSpree] = amount2;
        }
        return 1;
    }
    else return SendClientMessage(playerid, red, "ERROR: Only RCON Admins can use that command!");
}

Si-mi arata erorile de mai SUS.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.