Can someone help me ?
#3

i used this
Код:
if(strcmp(cmd,"/tmute",true) == 0)
	{
	    if(pInfo[playerid][pAdmin] >= 2)
	    {
		    new id,time,reason[128];
		    if(sscanf(params,"uis[128]",id,time,reason)) return SendClientMessage(playerid,-1,"Използвай: /tmute [playerid] [time] [reason]");
		    if(IsPlayerConnected(id))
		    {
		        if(id != INVALID_PLAYER_ID)
		        {
		            if(pInfo[id][pMuted] != 1)
		            {
					pInfo[id][pMuted] = 1;
					pInfo[id][pMutedTime] = (gettime() + time*60);
					format(string,sizeof(string),"%s беше заглушен от администратор %s за %d минути[Причина: %s]",GetName(id),GetName(playerid),time,reason);
					SendClientMessageToAll(0xFF0000FF,string);
					return 1;
					}
					else
					{
					    SendClientMessage(playerid,-1,"Този играч вече е заглушен !");
	    				return 1;
					}
		        }
		    }
	    }
	    else
	    {
	        SendClientMessage(playerid, 0xFF0000FF, "Нямаш права за да ползваш командата!");
	        return 1;
	    }
	   	return 1;
	}
but that i have the same problem again
Reply


Messages In This Thread
Can someone help me ? - by scripter112 - 19.03.2018, 14:18
Re: Can someone help me ? - by PepsiCola23 - 19.03.2018, 14:36
Re: Can someone help me ? - by scripter112 - 19.03.2018, 15:04

Forum Jump:


Users browsing this thread: 2 Guest(s)