help with /kick and /ban
#4

Quote:
Originally Posted by DanishHaq
Посмотреть сообщение
Can you show us what you've done up to now? And can you show us how you load / save your variables too? That'd help us.



He wants a kick and ban command that reads off the variables of Admin='%d', if the sender is not admin, it should return "get a admin noob". I think that's what he wants.
that's right.exluding that 'get a admin noob' was a example.a misspelled example.


Код:
CMD:kick(playerid, params[])
{
        if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid,-1,"Admins Only");
        new tmp[128];
		tmp = strtok(cmdtext, idx);

		Kick(strval(tmp));
        return 1;
}
that's one of the ways I tried to do that.
Reply


Messages In This Thread
help with /kick and /ban - by NaziHotdog - 19.10.2013, 17:50
Re: help with /kick and /ban - by Akira297 - 19.10.2013, 17:56
Re: help with /kick and /ban - by DanishHaq - 19.10.2013, 17:59
Re: help with /kick and /ban - by NaziHotdog - 19.10.2013, 18:06
Re: help with /kick and /ban - by DanishHaq - 19.10.2013, 18:11
Re: help with /kick and /ban - by NaziHotdog - 19.10.2013, 18:32
Re: help with /kick and /ban - by DanishHaq - 19.10.2013, 19:17
Re: help with /kick and /ban - by SilentSoul - 19.10.2013, 19:19
Re: help with /kick and /ban - by NaziHotdog - 19.10.2013, 19:37

Forum Jump:


Users browsing this thread: 1 Guest(s)