What is this ?!
#1

[IMG][/IMG]
See the chat above.....
where is the rest of the name ??
Here is the code
PHP код:
CMD:ban(playeridparams[])
{
    new 
targetid;
    if(
PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playeridCOLOR_RED"You can't use this command");
    if(
targetid == INVALID_PLAYER_ID) return SendClientMessage(playeridCOLOR_RED"This player is not connected");
    if(
sscanf(params,"u"targetid)) return SendClientMessage(playeridCOLOR_WHITE"Usage: /ban [id]");
    {
    new 
name[MAX_PLAYER_NAME], string[24+MAX_PLAYER_NAME];
    new 
admin[MAX_PLAYER_NAME], string1[24+MAX_PLAYER_NAME];
    
GetPlayerName(playeridadminsizeof(admin));
    
GetPlayerName(targetidnamesizeof(name));
    
format(stringsizeof(string), "%s has been banned by an admin %s"nameadmin);
    
SendClientMessageToAll(COLOR_REDstring);
    
PlayerInfo[targetid][pBan] = 1;
    
SetTimerEx("KickDelay"2000false"i"playerid);
    }
    return 
true;

Reply


Messages In This Thread
What is this ?! - by nezo2001 - 28.12.2014, 09:35
Re: What is this ?! - by Ryz - 28.12.2014, 09:40
Re: What is this ?! - by JeaSon - 28.12.2014, 09:41
Re: What is this ?! - by nezo2001 - 28.12.2014, 09:54
Re: What is this ?! - by Facerafter - 28.12.2014, 09:58
Respuesta: What is this ?! - by aoEXE - 28.12.2014, 10:00
Re: What is this ?! - by UltraScripter - 28.12.2014, 10:05
Re: What is this ?! - by Ahmad45123 - 28.12.2014, 10:10
Re: What is this ?! - by Sawalha - 28.12.2014, 10:19
Re: What is this ?! - by dominik523 - 28.12.2014, 10:27

Forum Jump:


Users browsing this thread: 1 Guest(s)