04.02.2010, 01:22
ok that worked but how would i go with adding that to my login command here is the code...
Код:
dcmd_login(playerid, params[]) { if(gPlayerInfo[playerid][PLAYER_REGGED] == 1) { if(gPlayerInfo[playerid][PLAYER_LOGGED] == 0) { if(password2 == gPlayerInfo[playerid][PLAYER_PASS]) { gPlayerInfo[playerid][PLAYER_LOGGED] = 1; SendClientMessage(playerid, COLOUR_LIGHTBLUE, "You have successfully logged in to your account."); OnPlayerLogin(playerid); } else { SendClientMessage(playerid, COLOUR_ORANGE, "ERROR: Incorrect password."); } } else { SendClientMessage(playerid, COLOUR_ORANGE, "ERROR: You Are Alredy logged in."); } } else { SendClientMessage(playerid, COLOUR_ORANGE, "ERROR: You must register first to do that! Use /register [password] to register and login."); } }