Player name Help :)
#4

must work dude
Код:
CMD:accountdisable(playerid, params[])
{
        new TargetID,Reason[64];
        if(pInfo[playerid][Adminlevel] < 5) return SendClientMessage(playerid, COLOR_RED, ""ERROR_MESSAGE"");
        if(sscanf(params, "us", TargetID, Reason)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /accountdisable [id] [Reason (optional)]");
        if(TargetID == INVALID_PLAYER_ID || !IsPlayerConnected(TargetID )) return SendClientMessage(playerid, COLOR_RED, "* Player Is Not Connected.");
        else
        {
               pInfo[TargetID][Adisable] =1;
               new str[128],str1[128];
               new targetname[MAX_PLAYER_NAME];
               GetPlayerName(TargetID,targetname,24);
               format(str,sizeof(str),"%s (%d) Has Been Disabled By An Admin. Reason: %s", targetname, TargetID, Reason);
               SendClientMessageToAll(COLOR_HOTPINK, str);
               format(str1,sizeof(str1),"**KICK: %s (%d) (ACCOUNT DISABLED) Account Disabled", targetname, TargetID);
               SendClientMessageToAll(COLOR_HOTPINK, str1);
               KickWithMessage(TargetID,"");
        }
        return 1;
}
Reply


Messages In This Thread
Player name Help :) - by Anak - 24.06.2013, 09:06
Re: Player name Help :) - by Cjgogo - 24.06.2013, 09:15
Re: Player name Help :) - by Anak - 24.06.2013, 09:28
Re: Player name Help :) - by dEcooR - 24.06.2013, 09:47
Re: Player name Help :) - by Anak - 24.06.2013, 09:53

Forum Jump:


Users browsing this thread: 1 Guest(s)