09.01.2015, 11:01
Hello friends i need your help again .this is my code can anyone tell me when player try to register or even login then i want his ip and country must shown their like this
If player login
I want it to be shown on dialog box like this,
Server login(red colour)
Welcome back to the server(red) ,Playername(green colour).have a nice fun enjoy your play time.
Your ip(red).
If he try to register then dialog box appear as same
If player login
I want it to be shown on dialog box like this,
Server login(red colour)
Welcome back to the server(red) ,Playername(green colour).have a nice fun enjoy your play time.
Your ip(red).
If he try to register then dialog box appear as same
Код HTML:
public OnPlayerConnect(playerid) { SendClientMessage(playerid, COLOR_BRIGHTRED, "Welcome to UK-DM"); SendClientMessage(playerid, COLOR_BRIGHTRED, "Hope you enjoy!"); SendClientMessage(playerid, COLOR_BRIGHTRED, "Type /commands for a list of commands"); new name[MAX_PLAYER_NAME], file[128]; GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(file, sizeof(file), ".../Users/%s.ini", name); if(!fexist(file)) { SendClientMessage(playerid, COLOR_YELLOW, "You are not registered, please register"); ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Please Register", "Enter Your Password Below", "Register", "Cancel"); } else { new str[128]; GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(str, sizeof(str), "Welcome Back ~r~%s. Enjoy!", name); SendClientMessage(playerid, COLOR_YELLOW, str); ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Please Login", "Enter Your Password Below", "Login", "Cancel"); } return 1;