[admin commands problem]
#1

pawn Код:
dcmd_kick(playerid,params[])
    {
    if(IsPlayerAdmin(playerid))
    {
    new ID;
    new pname[24];
    new string[200];
    new reason;
    if(sscanf(params, "uz", ID, reason)) return SendClientMessage(playerid, COLOR_RED, "Usage: /kick (ID) (REASON)");
    if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, COLOR_RED, "Invalid ID.");
    GetPlayerName(playerid, pname,24);
    GetPlayerName(ID);
    format(string, 200, "[ADMIN KICK] %S", reason);
    SendClientMessageToAll(COLOR_GREEN, string);
    format(string, 200, "[ADMIN ACTION] Admin has kicked %s(%d) %s", pname, ID, reason);
    Kick(ID);
    return 1;
    }
    return SendClientMessage(playerid, COLOR_RED, "You Are Not An Admin");
    }
Whats the problem it gets like this http://gyazo.com/32cdd3b6b9c34f405675ea303e191157
Reply


Messages In This Thread
[admin kick problem] - by basse - 30.09.2012, 00:06
Re: [admin commands problem] - by trapstar2020 - 30.09.2012, 00:10
Re: [admin commands problem] - by basse - 30.09.2012, 00:12
Re: [admin commands problem] - by trapstar2020 - 30.09.2012, 00:17
Re: [admin commands problem] - by trapstar2020 - 30.09.2012, 00:19
Re: [admin commands problem] - by basse - 30.09.2012, 00:23
Re: [admin commands problem] - by trapstar2020 - 30.09.2012, 00:38
Re: [admin commands problem] - by basse - 30.09.2012, 01:47

Forum Jump:


Users browsing this thread: 1 Guest(s)