Command in strcmp
#1

PHP код:
dcmd_ban(playeridparams[]) {
    new 
pName[MAX_PLAYER_NAME] , pName2[MAX_PLAYER_NAME] , targetid reason[64] , string[128] , stringbig[256] , YEAR_string[5], YearMonthDay;
    
GetPlayerName(targetidpNamesizeof(pName));\
    
GetPlayerName(playeridpName2sizeof(pName2));
    
getdate(YearMonthDay);
    if(!
IsPlayerAdmin(playerid)) return 0;
    if(
sscanf(params"us[80]"targetid ,reason))  return SendClientMessage(playeridCOLOR_WHITE"SERVER: "COL_GREEN"/ban [playerid/partofname] [reason]");
    if(!
IsPlayerConnected(targetid)) return SendClientMessage(playeridCOLOR_WHITE"SERVER: "COL_RED" Player not connected or is yourself!");
    
format(stringsizeof(string), "SERVER: "COL_RED"%s "COL_GREEN"has been banned "COL_RED"(Reason: %s)",pNamereason);
    
SendClientMessageToAll(COLOR_WHITEstring);
    
format(YEAR_stringsizeof(YEAR_string), "%d"Year);
    
strdel(YEAR_string02);
    
format(stringbigsizeof(stringbig),"~r~Reason: ~w~ %s ~n~~r~Banned By: ~w~ %s ~n~~r~Date: ~w~ %d/%d/%s",reason,pName2,MonthDateYEAR_string);
    
TextDrawSetString(Info[playerid] , stringbig);
    
TextDrawShowForPlayer(playeridInfo[playerid]);
    
TextDrawShowForPlayer(playeridBox[playerid]);
    
TextDrawShowForPlayer(playeridBannedNotice[playerid]);
    
TextDrawShowForPlayer(playeridSite[playerid]);
    
Ban(targetid);
    return 
1;

Can help me to make this command in strcmp
Reply


Messages In This Thread
Command in strcmp - by boyan96 - 23.04.2012, 18:26
Re: Command in strcmp - by .FuneraL. - 23.04.2012, 18:50
Re: Command in strcmp - by AndreT - 23.04.2012, 18:55
Re: Command in strcmp - by xx360 - 23.04.2012, 19:20

Forum Jump:


Users browsing this thread: 1 Guest(s)