Time and date for command shows ingame
#1

Hi, when i type /maskon or /maskoff the time/date/sendername of command is showing in the game for everyone that is near the player. I dont know why this have started since nothing in the command is changed but here is it anyway
pawn Код:
if(strcmp(cmd, "/maskon", true) == 0) // by CuervO_NegrO
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pMask] == 0)
            {
                 SendClientMessage(playerid, COLOR_GRAD1, "** You don't have a mask");
                 return 1;
            }
            if(PlayerInfo[playerid][pLevel] < 5)
            {
                SendClientMessage(playerid, COLOR_GRAD1, "** You are not able to use it.");
                return 1;
            }
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i))
                {
                    ShowPlayerNameTagForPlayer(i, playerid, 0);
                }
            }
            PlayerInfo[playerid][pMaskuse] = 1;
            SendClientMessage(playerid, COLOR_WHITE, "** You have put your mask on [/maskoff to put it away].");
            ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);

            new y, m, d;
            new h,mi,s;
            getdate(y,m,d);
            gettime(h,mi,s);
            format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /maskon",d,m,y,h,mi,s,sendername);
            CommandLog(string);
        }
        return 1;
    }
I hope you can help
Reply


Messages In This Thread
Time and date for command shows ingame - by Don_Cage - 14.02.2013, 18:53
Re: Time and date for command shows ingame - by Don_Cage - 15.02.2013, 16:14
Re: Time and date for command shows ingame - by Scenario - 15.02.2013, 16:24
Re: Time and date for command shows ingame - by Don_Cage - 15.02.2013, 16:54
Re: Time and date for command shows ingame - by Don_Cage - 15.02.2013, 16:57
Re: Time and date for command shows ingame - by Scenario - 15.02.2013, 17:04
Re: Time and date for command shows ingame - by Don_Cage - 15.02.2013, 18:00
Re: Time and date for command shows ingame - by Da_Noob - 15.02.2013, 19:15
Re: Time and date for command shows ingame - by Don_Cage - 16.02.2013, 18:09

Forum Jump:


Users browsing this thread: 1 Guest(s)