How to change Commands " ZCMD " To ...
#1

Hello guys


i have some CMD want to change it to Normal cmd
Like
pawn Код:
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
i need change this

pawn Код:
CMD:tempban(playerid,params[])
{
    if(!TempAdmin(playerid)) return SendClientMessage(playerid,COLOR_RED,"You must be admin to use this command.");
    new days,rsn[24],id,name[24];
    if(GetCurrentTempBanCount() == 24) return SendClientMessage(playerid,COLOR_RED,"Temp Ban Limit Reached.");
    if(sscanf(params, "uds[24]",id,days,rsn)) return SendClientMessage(playerid,COLOR_RED,"Usage: /tempban <PlayerID/Name> <Amount Of Days> <Reason>");
    new year,mon,d;
    getdate(year,mon,d);
    new i = GetTempBanSlot();
    new aname[24];
    GetPlayerName(playerid,aname,sizeof aname);
    GetPlayerName(id,name,sizeof name);
    format(TempBans[i][BannedName],sizeof name,"%s",name);
    TempBans[i][BannedName] = name;
    TempBans[i][UnbanDate] = d+days;
    new str[128];
    GetPlayerName(id,name,sizeof name);
    format(str,sizeof str,"%s (ID%d) has been temporary banned by Admin %s (ID:%d) (%s)",aname,playerid,name,id,rsn);
    SendClientMessage(playerid,COLOR_RED,str);
    Kick(id);
    return 1;
}

Look : Please if know how to change it and u don't hav time for make , just say to me ( How ? )


Thank you guys!!
Reply


Messages In This Thread
How to change Commands " ZCMD " To ... - by morocco - 09.06.2013, 14:46
Re: How to change Commands " ZCMD " To ... - by kalanerik99 - 09.06.2013, 14:49
Re : Re: How to change Commands " ZCMD " To ... - by morocco - 09.06.2013, 15:05
Re: How to change Commands " ZCMD " To ... - by Aly - 09.06.2013, 15:28
Re : Re: How to change Commands " ZCMD " To ... - by morocco - 09.06.2013, 15:53
Re: How to change Commands " ZCMD " To ... - by Aly - 09.06.2013, 15:57

Forum Jump:


Users browsing this thread: 5 Guest(s)