Offline Command
#2

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.

PHP код:
    new name[MAX_PLAYER_NAME];
    new 
string[60];
    
GetPlayerName(playeridnameMAX_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;
    } 
Reply


Messages In This Thread
Offline Command - by Miller007 - 01.05.2016, 19:43
Re: Offline Command - by MarikAshtar - 01.05.2016, 23:43
Re: Offline Command - by colonel-top - 02.05.2016, 04:17
Re: Offline Command - by colonel-top - 02.05.2016, 04:22
Re: Offline Command - by SyS - 02.05.2016, 05:57
Re: Offline Command - by Sew_Sumi - 02.05.2016, 06:32
Re: Offline Command - by jlalt - 02.05.2016, 06:49
Re: Offline Command - by MarikAshtar - 02.05.2016, 07:28
Re: Offline Command - by Stinged - 02.05.2016, 07:49
Re: Offline Command - by MarikAshtar - 02.05.2016, 08:16

Forum Jump:


Users browsing this thread: 1 Guest(s)