[HELP] /Addscore
#4

pawn Код:
if(strcmp(cmd, "/addscore", true) == 0)
    {
            new tmp[128];
            tmp = strtok(cmdtext, idx);
            if(strlen(tmp) == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /addscore [playerid]");
            if(IsPlayerConnected(strval(tmp)))
            {
                new score = GetPlayerScore(strval(tmp));
                SetPlayerScore(strval(tmp),score+1);

                new name[MAX_PLAYER_NAME], string[128];
                GetPlayerName(playerid, name, sizeof(name));
               
                format(string, sizeof(string), "%s added 1 score extra to your account.",name);
                SendClientMessage(strval(tmp), 0xFFFF00AA, string);
            }
            return 1;
    }
Reply


Messages In This Thread
[HELP] /Addscore - by Larsey123IsMe - 08.12.2010, 23:01
Re: [HELP] /Addscore - by Lenny the Cup - 08.12.2010, 23:10
Re: [HELP] /Addscore - by The_Gangstas - 08.12.2010, 23:17
Re: [HELP] /Addscore - by iFriSki - 08.12.2010, 23:17
Re: [HELP] /Addscore - by Larsey123IsMe - 08.12.2010, 23:18
Re: [HELP] /Addscore - by The_Gangstas - 08.12.2010, 23:31
Re: [HELP] /Addscore - by Larsey123IsMe - 08.12.2010, 23:33
Re: [HELP] /Addscore - by The_Gangstas - 08.12.2010, 23:40
Re: [HELP] /Addscore - by Tessar - 12.12.2010, 16:36
Re: [HELP] /Addscore - by Lenny the Cup - 12.12.2010, 18:14

Forum Jump:


Users browsing this thread: 1 Guest(s)