ban script
#4

Код:
if(strcmp("/ban", cmd, true) == 0)
		{
				tmp = strtok(cmdtext, idx);
                if(strval(tmp) == playerid) return SendClientMessage(playerid, red, "ERROR: You can't ban yourself!");
                if(IsPlayerConnected(strval(tmp)) == 0) return SendClientMessage(playerid, red, "ERROR: No player with such id!");
                cmdid = strval(tmp);

                format(string, sizeof(string), "NOTICE: %s have banned %s from the server.", prname, idname);
                SendClientMessageToAll(yellow, string);
                print(string);

                Ban(cmdid);
                return 1;

		}
dunno if it works.
Reply


Messages In This Thread
ban script - by cssbart - 29.08.2010, 18:09
Re: ban script - by iJumbo - 29.08.2010, 18:12
Re: ban script - by cssbart - 29.08.2010, 18:17
Re: ban script - by !Pumpkin - 29.08.2010, 18:18
Re: ban script - by Las Venturas CNR - 29.08.2010, 18:21
Re: ban script - by cssbart - 29.08.2010, 18:23

Forum Jump:


Users browsing this thread: 3 Guest(s)