GiveAllScore
#2

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);
}
Reply


Messages In This Thread
GiveAllScore - by Elasmar - 04.03.2013, 13:25
Re: GiveAllScore - by DarkPower - 04.03.2013, 13:37
Re: GiveAllScore - by Elasmar - 04.03.2013, 13:59
Re: GiveAllScore - by Gamer_007 - 04.03.2013, 14:28
Re: GiveAllScore - by MehranGta - 04.03.2013, 14:42
Re: GiveAllScore - by Jewell - 04.03.2013, 15:12

Forum Jump:


Users browsing this thread: 1 Guest(s)