[GameMode] My DM [GM]
#9

Quote:

Sorry, but this is a big fail. Check your kick command for example.

You type /kick. It has no validation rules. You are then kicked (the player that typed the command) - then it checks to see if you're admin and if your not it tells you otherwise. First off; Thats not logical, secondly, it wont allow you to kick anyone but yourself. This goes for most of the admin commands i have seen, i havent had time to check them all.

Example;
pawn Code:

if (strcmp("/kick", cmdtext, true, 10) == 0)
{
Kick(playerid);
SendClientMessage(playerid, 0x0000FFAA,"/kick <id> <reason>");
if(!IsPlayerAdmin(playerid))
SendClientMessage(playerid, 0xAA3333AA,"You Are Not Admin.");
return 1;
}


Oh, and - to make it worse, "/kick" (and NULL) is not 10 characters long.

However, nice attempt.

Thx AnyWay And i'll Try To Fix This In Next Update
Reply


Messages In This Thread
Removed - by ilikenuts - 06.02.2011, 13:54
Re: My DM [GM] - by Macintosh - 06.02.2011, 16:48
Re: My DM [GM] - by Curti$ - 06.02.2011, 17:08
Re: My DM [GM] - by Mean - 06.02.2011, 17:13
Re: My DM [GM] - by Macintosh - 06.02.2011, 17:37
Re: My DM [GM] - by Maftaca - 06.02.2011, 17:46
Re: My DM [GM] - by Kruger - 06.02.2011, 23:03
Re: My DM [GM] - by Ash. - 08.02.2011, 18:41
Re: My DM [GM] - by ilikenuts - 09.02.2011, 11:55
Re: My DM [GM] - by omer5198 - 06.03.2011, 15:07

Forum Jump:


Users browsing this thread: 1 Guest(s)