/ban [id] [REASON]
#2

You can use https://sampwiki.blast.hk/wiki/Strmid for that

pawn Код:
new reason[128];
reason = "No Reason Given";
strmid(reason,cmdtext,6,strlen(cmdtext));
You might need to mess around with start/stop though.. testing it in your own script ftw

Ive added it as an example below

pawn Код:
format(globalmsg,sizeof(globalmsg),"[ADMIN]: Administrator %s has banned player %s for breaking the server rules. %s",adminid,victimid,reason);
SendClientMessageToAll(COLOR_LIGHTBLUE,globalmsg);
Reply


Messages In This Thread
/ban [id] [REASON] - by admantis - 13.12.2010, 04:25
Re: /ban [id] [REASON] - by BMUK - 13.12.2010, 12:26

Forum Jump:


Users browsing this thread: 1 Guest(s)