21.02.2014, 10:31
try this
if(!strcmp(inputtext, PlayerInfo[playerid][password]))
{
//What should do if the password is right
}
And you have this :
before checking password.
Don't put the dialog call on OnPlayerRequestClass(), it will shown every time player change the classe right and left, put after password check !
if(!strcmp(inputtext, PlayerInfo[playerid][password]))
{
//What should do if the password is right
}
And you have this :
Код:
SendClientMessage(playerid, COLOR_GREEN,"You have succesfully logged in !");
Don't put the dialog call on OnPlayerRequestClass(), it will shown every time player change the classe right and left, put after password check !