30.05.2009, 18:49
Allright so, some time ago i did this together with Wadabak and WeeDarr, i forgot how the hell we do it, so i came here for some help.
This is my Code:
As you can see, i check'd if he didnt add any Input, but now, i forgot how to check if his params equals the variable called "AdminPW", can someone tell me`? it's really simple i know, but i forgotten it, AGAIN. .
Cheers, - Mikkel.
This is my Code:
pawn Код:
dcmd_auth(playerid, params[])
{
if (!strlen(params)) return SendClientMessage(playerid, COLOR_WHITE ,"Error: No Input.");
new AuthMsg[128], pName[MAX_PLAYER_NAME];
{
SendClientMessage(playerid, COLOR_WHITE, "Auth'd = 1;");
Admin[playerid] = 1;
format(AuthMsg,sizeof(AuthMsg), "%s Auth'd For Admin Level.", pName);
SendClientMessageToAll(COLOR_WHITE,AuthMsg);
}
return 1;
}
Cheers, - Mikkel.