SA-MP Forums Archive
plz fast - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: plz fast (/showthread.php?tid=355890)



plz fast - antonisrodos94 - 01.07.2012

I need command /banip [ID] reason:


Re: plz fast - LukeStephens - 01.07.2012

Make it yourself and stop trying to suck up and asslick trying to get code.


Re: plz fast - antonisrodos94 - 01.07.2012

ok sorry


Re: plz fast - Mr.Fames - 01.07.2012

Quote:
Originally Posted by LukeStephens
Посмотреть сообщение
Make it yourself and stop trying to suck up and asslick trying to get code.
Don't be so mean


Re: plz fast - antonisrodos94 - 01.07.2012

sorry for my false i am new sorry again


Re: plz fast - LaGrande - 01.07.2012

Quote:
Originally Posted by LukeStephens
Посмотреть сообщение
Make it yourself and stop trying to suck up and asslick trying to get code.
Mind ur words.

pawn Код:
COMMAND:banip(playerid,params[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,"You can't use this command.");
    new PlayerID,Reason[150];
    if(sscanf(params,"is",PlayerID,Reason)) return SendClientMessage(playerid,-1,"Type /banip [ID][Reason].");
    if(!IsPlayerConnected(PlayerID)) return SendClientMessage(playerid,-1,"Invalid ID.");
    new String[150];
    format(String,150,"IP %d has been banned by admin '%s'    Reason:%s",PlayerID,PlayerName[playerid],Reason);
    SendClientMessageToAll(0,String);
    format(String,150,"You banned player about ip %s",PlayerID);
    SendClientMessage(playerid,0,String);
    format(string, sizeof(string),"banip %d", PlayerID);
        SendRconCommand(string);
        SendRconCommand("reloadbans");
    return 1;
}
Not Tested, if u find any errors. Let me know


Re: plz fast - antonisrodos94 - 01.07.2012

dcmd plz!!