Jump to content
  • 0

Problema rcon commands.


namerz

Question

11 answers to this question

Recommended Posts

Buna , el vrea sa faca o comanda care sa o poata folosi doar RCON-ul. Dane mai multe detalii , ce folosesti , niste linii , comanda sethours .

Eu am sa iti dau pe bud , pentru ca sunt sigura ca ala il folosesti.

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

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.