help :D
#2

reason must be a string
Код:
dcmd_kick(playerid,params[])
{
    new id,pName[MAX_PLAYER_NAME],reason[128],string[128];
    if(PInfo[playerid][Level] < 3) return 0;
    if(sscanf(params,"us[128]",id,reason)) return SendClientMessage(playerid,orange,"USAGE: /kick [playerid][reason]");
    GetPlayerName(id,pName,sizeof(pName));
    format(string,sizeof(string),"AdmCmd: %s has been kicked [reason: %s]",pName,reason);
    SendClientMessageToAll(cream,string);
    Kick(id);
    return 1;
}
Reply


Messages In This Thread
help :D - by MestreKiller - 12.12.2010, 14:16
Re: help :D - by armyoftwo - 12.12.2010, 14:18
Re: help :D - by MestreKiller - 12.12.2010, 14:20
Re: help :D - by armyoftwo - 12.12.2010, 14:22
Re: help :D - by MestreKiller - 12.12.2010, 14:25

Forum Jump:


Users browsing this thread: 1 Guest(s)