help me fix these errors with /kick cmd
#3

pawn Код:
CMD:kick(playerid, params[])
{
    new pID, aName[MAX_PLAYER_NAME], reason[64], kickstring[128],pName[MAX_PLAYER_NAME];
    if(sscanf(params, "is[64]", pID, reason)) return SendClientMessage(playerid, -1, " USAGE:/kick [playerid/name] [reason]");
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0066C8, " You are not allowed to do that!");
    GetPlayerName(playerid,aName,MAX_PLAYER_NAME);
    GetPlayerName(pID,pName,MAX_PLAYER_NAME); format(kickstring, sizeof(kickstring), "AdmCmd:%s has kicked %s for : %s", aName, pName, reason);
    SendClientMessageToAll(0xFF0066C8, kickstring);
    Kick(pID);
    return 1;
}
Reply


Messages In This Thread
help me fix these errors with /kick cmd - by mittukuttan - 12.01.2013, 08:44
Re: help me fix these errors with /kick cmd - by EAsT-OAK_510 - 12.01.2013, 08:46
Re: help me fix these errors with /kick cmd - by DaRk_RaiN - 12.01.2013, 09:24

Forum Jump:


Users browsing this thread: 1 Guest(s)