04.03.2013, 13:37
I don't know how LuxAdmin work's but i can make you similarly command, may help you
pawn Код:
YCMD:giveallscore(playerid, params[], help) // https://sampforum.blast.hk/showthread.php?tid=169029)
{
new score = (0), string[128] = "\0", adminName[MAX_PLAYER_NAME];
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Just RCON.");
else if(sscanf(params, "d", score)) return SendClientMessage(playerid, -1, "USAGE: /giveallscore [score]"); // https://sampforum.blast.hk/showthread.php?tid=120356
else
{
GetPlayerName(playerid, adminName, MAX_PLAYER_NAME);
for(new i = (0), players = GetMaxPlayers(); i < players; ++ i)
{
SetPlayerScore(i, GetPlayerScore(i) + score);
}
format(string, (sizeof string), "RCON Administrator %s give %d scores to all.", adminName, score);
SendClientMessageToAll(string);
}
return (true);
}