[HELP] Help Command .
#8

PHP код:
public XaPMutePlayer(playeridtimereason// Credit To XaP Admin Mod ! 

    if(!
IsPlayerConnected(playerid)) return 1;
    new 
string[256],ActionName[24]; GetPlayerName(playerid,ActionName,24); 
    
AccInfo[playerid][Muted] = 1
    new 
nTime[16]; 
    
nTime time;
    if(
time == 1)
    {
        
format(string256"The player %s has been muted for %d second.(Reason: %s)"ActionNamenTimereason);
    }
    else if(
time <= 59 && >= 2)
    {
        
format(string256"The player %s has been muted for %d seconds.(Reason: %s)"ActionNamenTimereason);
    }
    else if(
time >= 60)
    {
        
format(string256"The player %s has been muted for %d seconds.(Reason: %s)"ActionNamenTimereason);
    }
    
TimerUnMute[playerid] = SetTimerEx("UnMutePlayer", (time*1000), 0"d"playerid); 
    
SendClientMessageToAll(yellow,string); 
    return 
1

give that a try, its not built the same way as you did, but it should work.
Reply


Messages In This Thread
[HELP] Help Command . - by TeRmi[N]aTor - 11.07.2011, 19:48
Re: [HELP] Help Command . - by Roko_foko - 11.07.2011, 19:58
Re: [HELP] Help Command . - by TeRmi[N]aTor - 11.07.2011, 20:00
Re: [HELP] Help Command . - by Roko_foko - 11.07.2011, 20:00
Re: [HELP] Help Command . - by Hipflop - 11.07.2011, 20:02
Re: [HELP] Help Command . - by beauhobbs - 11.07.2011, 20:05
Re: [HELP] Help Command . - by TeRmi[N]aTor - 11.07.2011, 20:08
Re: [HELP] Help Command . - by beauhobbs - 11.07.2011, 20:23
Re: [HELP] Help Command . - by Roko_foko - 11.07.2011, 21:05
Re: [HELP] Help Command . - by TeRmi[N]aTor - 11.07.2011, 21:12

Forum Jump:


Users browsing this thread: 1 Guest(s)