25.08.2011, 11:19
Quote:
It sounds like you are trying to get special people without going to all the effort of developing a full user system. While this aim does seem to have advantages you need to remember that in SA:MP anyone can change their name to anything. If you don't have the password protection of a user system anyone can set their name to say "CWollinger", join your server and become yellow (assuming that being yellow is desirable, if not, no-one will do it, not even those listed people).
I would urge you to look in to getting a proper user system (there are plenty already made) and store if the user is yellow or not in their user data. |
YSI - https://sampforum.blast.hk/showthread.php?tid=61548
PHP код:
#define gvar_colors[MAX_PLAYERS];
public OnPlayerConnnect(playerid)
{
if(gvar_colors[playerid] == 1)
{
SetPlayerColor(playerid, 0xFFFF00AA);
}
}