[Tutorial] How To Make Admin Ranks + /admins
#6

Please do some research first before creating a tutorial. This sets a bad example for others.

pawn Код:
if(IsPlayerConnected(playerid))
Evidently, the player that executes the command is connected. This piece of code dates back to SA-MP 0.1b where a player could still execute commands after being kicked. This was fixed. Still people are blindly copying this (GodFather ...) without the slightest clue as to why.

pawn Код:
new string[256];
The maximum chat output is 128 characters. Why use a buffer twice that length?

pawn Код:
else if(PlayerInfo[i][pAdmin] == 2)
Know when to use switches.


Oh, And Don't Type Every Word With A Capital Letter, Because That Is So Annoying To Read.
Reply


Messages In This Thread
How To Make Admin Ranks + /admins - by Nirzor - 16.06.2012, 09:44
Re: How To Make Admin Ranks + /admins - by JaKe Elite - 16.06.2012, 09:46
Re: How To Make Admin Ranks + /admins - by Nirzor - 16.06.2012, 09:49
Re: How To Make Admin Ranks + /admins - by JaKe Elite - 16.06.2012, 09:52
Re: How To Make Admin Ranks + /admins - by Nirzor - 16.06.2012, 11:50
Re: How To Make Admin Ranks + /admins - by Vince - 16.06.2012, 13:33
Re: How To Make Admin Ranks + /admins - by Max_Coldheart - 16.06.2012, 13:47
Re: How To Make Admin Ranks + /admins - by Nirzor - 17.06.2012, 05:43
Re: How To Make Admin Ranks + /admins - by JaKe Elite - 17.06.2012, 06:24
Re: How To Make Admin Ranks + /admins - by Nirzor - 17.06.2012, 12:45

Forum Jump:


Users browsing this thread: 2 Guest(s)