24.01.2013, 16:56
Hello, I found some problem in fAdmin, when i connect to the server with a different name, it should show me the register dialog but it shows me the login dialog, here is the code to login\register
If you find any mistake, pleas fix that code and give it to me here on this page
__________________________________________________ ____________________________________
The second prob is that if i want to attach a abject with a vehicle or a player, how will i measure the axis, it is very hard for me cant think, please help me with that.
and
how will i make /stealth which will hide the player name and his dot on the map something like spy shit.
Код:
public OnPlayerRequestClass(playerid, classid) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name)); format(File,sizeof(File),"/fAdmin/Players/%s.txt",name); if(!dini_Exists(File)) { if(PlayerLogged[playerid] == 0) { if(PlayerAcc[playerid][Registered] == 0) { #if MustRegister == true new Name[MAX_PLAYER_NAME]; GetPlayerName(playerid,Name,sizeof(Name)); new rstring[256]; format(rstring,256,"Welcome to the server!\nYour account (%s) isnt registered!\n\nPlease type your password:",Name); ShowPlayerDialog(playerid,RegisterDialog,DIALOG_STYLE_PASSWORD,"Register Account",rstring,"Register","Quit"); #endif return 1; } } return 1; } if(PlayerAcc[playerid][Registered] == 1) { #if MustLogin == true new Name[MAX_PLAYER_NAME]; GetPlayerName(playerid,Name,sizeof(Name)); new lstring[256]; format(lstring,256,"Your account (%s) is registered!\n\nLogin to access your account:",Name); ShowPlayerDialog(playerid,LoginDialog,DIALOG_STYLE_PASSWORD,"Account Login",lstring,"Login","Quit"); #endif return 1; } return 1; }
__________________________________________________ ____________________________________
The second prob is that if i want to attach a abject with a vehicle or a player, how will i measure the axis, it is very hard for me cant think, please help me with that.
and
how will i make /stealth which will hide the player name and his dot on the map something like spy shit.