Problem with Learning Tuto again
#1

Hi , i use /learn {playerid] so , the player get Punished and must Learn again the tutorial, but , whene i do it , the player Connect IG and doesn't Learn the tutorial...

Command :
pawn Код:
if(strcmp(cmd, "/learn", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /learn [playerid/PartOfName]");
                return 1;
            }
            giveplayerid = ReturnUser(tmp);
            if (PlayerInfo[playerid][pAdmin] >= 3)
            {
                if(IsPlayerConnected(giveplayerid))
                {
                    if(giveplayerid != INVALID_PLAYER_ID)
                    {
                        GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        new year, month,day;
                        getdate(year, month, day);
                        format(string, sizeof(string), "%s was been Kicked by %s, He Must Learn again the Tutorial(NoRP).(%d-%d-%d)", sendername,giveplayer,day,month,year);
                        KickLog(string);
                        PlayerInfo[playerid][pTut] = 0;//This is the expression i use
                        format(string, sizeof(string), "An Admin Forced you to learn the tutorial Again.");
                        SendClientMessage(giveplayerid,COLOR_LIGHTRED,string);
                        Kick(giveplayerid);
                        GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        format(string, 256, "%s kicked %s (Must Learn the tutorial).", sendername,giveplayer);
                        SendClientMessageToAll(COLOR_LIGHTRED, string);
                        return 1;
                    }
                }
            }
            else
            {
                format(string, sizeof(string), "the ID %d is not avaible.", giveplayerid);
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
        }
        return 1;
    }
I use :
PHP код:
PlayerInfo[playerid][pTut] = 0
Reply


Messages In This Thread
Problem with Learning Tuto again - by ServerScripter - 30.09.2011, 18:03
Re: Problem with Learning Tuto again - by [MWR]Blood - 30.09.2011, 18:23
Re: Problem with Learning Tuto again - by sleepysnowflake - 30.09.2011, 19:21
Re: Problem with Learning Tuto again - by ServerScripter - 02.10.2011, 11:18
Re: Problem with Learning Tuto again - by sleepysnowflake - 02.10.2011, 13:03
Re: Problem with Learning Tuto again - by MadeMan - 02.10.2011, 13:53
Re: Problem with Learning Tuto again - by ServerScripter - 04.10.2011, 10:35

Forum Jump:


Users browsing this thread: 1 Guest(s)