09.06.2013, 14:46
Hello guys
i have some CMD want to change it to Normal cmd
Like
i need change this
Look : Please if know how to change it and u don't hav time for make , just say to me ( How ? )
Thank you guys!!
i have some CMD want to change it to Normal cmd
Like
pawn Код:
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
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!!