Weird timer-parameter
#2

try this

PHP код:

dcmd_kick
(playeridparams[])
{
    if(
IsPlayerAdmin(playerid))
    {
        new 
pidreason[128], name[MAX_PLAYER_NAME], done[128];
        if(
sscanf(params"uz"pidreason))
        {
        
SendClientMessage(playeridrot"ERROR: /kick [ID/Name] [Grund]");
        }
        if(
pid == INVALID_PLAYER_ID)
        {
        
SendClientMessage(playeridrot"ERROR: Spieler ist nicht online.");
        }
        else if(
pid == playerid)
        {
        
SendClientMessage(playeridrot"Du kannst dich nicht selbst kicken.");
        }
        else
        {
        
GetPlayerName(pidnamesizeof(name));
        
format(donesizeof(done), "%s wurde gekickt. Grund: %s"namereason);
        
SendClientMessage(playeridrotdone);
        
KickEx(pid);
        }
    }
    else
    {
        
SendClientMessage(playeridrot"Error: Du bist kein Admin!");
    }
    return 
1;
}

function 
Kick2(playerid) { Kick(playerid); }
stock KickEx(playerid)
{
    
SetTimerEx("Kick2"1000"i"playerid);

Reply


Messages In This Thread
Weird timer-parameter - by eSPeZet - 06.08.2017, 01:24
Re: Weird timer-parameter - by NewFreeroamStunt - 06.08.2017, 01:41
Re: Weird timer-parameter - by eSPeZet - 06.08.2017, 01:53
Re: Weird timer-parameter - by ISmokezU - 06.08.2017, 02:31
Re: Weird timer-parameter - by eSPeZet - 06.08.2017, 02:38
Re: Weird timer-parameter - by eSPeZet - 06.08.2017, 21:18
Re: Weird timer-parameter - by Misiur - 06.08.2017, 21:22
Re: Weird timer-parameter - by Misiur - 06.08.2017, 21:27
Respuesta: Weird timer-parameter - by ThiagoMikael - 06.08.2017, 21:28
Re: Weird timer-parameter - by eSPeZet - 06.08.2017, 21:33
Re: Weird timer-parameter - by Kane - 06.08.2017, 21:51
Re: Weird timer-parameter - by Misiur - 06.08.2017, 21:53
Re: Weird timer-parameter - by Nehe - 06.08.2017, 21:53
Re: Weird timer-parameter - by eSPeZet - 06.08.2017, 21:57
Re: Weird timer-parameter - by BlackBank - 06.08.2017, 23:46
Re: Weird timer-parameter - by eSPeZet - 07.08.2017, 01:43

Forum Jump:


Users browsing this thread: 1 Guest(s)