Problem with one command..
#5

pawn Код:
if(strcmp(cmd,"/givescoreall",true) == 0)
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
        SendClientMessage(playerid, COLOR_WHITE, "ИЗПОЛЗВАЙ: /givescoreall [ точки ]");
        return 1;
    }
    new kills1;
    kills1 = strval(tmp);
    if(PlayerInfo[playerid][pAdmin] < 5) return  SendClientMessage(playerid, -1, "Нямаш достатъчно права, за да използваш командата!");
    for(new i; i < MAX_PLAYERS; i++)
    {
        PlayerInfo[i][pKills] += kills1;
        SetPlayerScore(i, PlayerInfo[i][pKills]);
    }
format(string, sizeof(string), "%s даде %d точки на всички играчи в сървъра!", PlayerName(playerid), PlayerInfo[playerid][pKills]);
        SendClientMessageToAll(COLOR_RED,string);
    return 1;
}
Last time I'm fixing it, learn yourself.
Reply


Messages In This Thread
Problem with one command.. - by dundolina - 31.03.2015, 13:04
Re: Problem with one command.. - by BleverCastard - 31.03.2015, 13:16
Re: Problem with one command.. - by dundolina - 31.03.2015, 13:55
Re: Problem with one command.. - by CalvinC - 31.03.2015, 14:32
Re: Problem with one command.. - by BleverCastard - 31.03.2015, 14:37
Re: Problem with one command.. - by Gammix - 31.03.2015, 14:40

Forum Jump:


Users browsing this thread: 3 Guest(s)