01.05.2016, 23:43
I can not convert it for you but I can try give you some help for how you can do it.
You would first need to store the players IP (When he connect or disconnect) in some file with his name for easier access.
Then change the command so it will search for his name where ever you save those files.
It's a long time since I've been coding and I was lazy so only "know" dini but here is an example on how you can get the stored IP once you've saved it.
You would first need to store the players IP (When he connect or disconnect) in some file with his name for easier access.
Then change the command so it will search for his name where ever you save those files.
It's a long time since I've been coding and I was lazy so only "know" dini but here is an example on how you can get the stored IP once you've saved it.
PHP код:
new name[MAX_PLAYER_NAME];
new string[60];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
format(string,sizeof(string),"SaveFolderForIP/%s.ini", name);
if(dini_Exists(string))
{
/*
If the file exist, get the IP stored inside.
*/
return true;
}