SA-MP Forums Archive
Getalt command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Getalt command (/showthread.php?tid=558841)



Getalt command - Diti1 - 19.01.2015

hey boys pleaase help me
i created a cmd to get player main account and alt acounts
i want it to show me the list of accounts that the IP got example
/getalts 192.**.**.** and show me accounts like John Seah,Saema etc
please hep me boys
here is the cmd

PHP код:
COMMAND:getalts(playeridparams[])
{
    if(
PlayerInfo[playerid][power] < 20) return SendClientError(playeridCANT_USE_CMD);
    new 
tmp[32];
    if( 
sscanf params"s"tmp))  return SCP(playerid"[IP / IP Range]");
    for(new 
isizeof(House); i++)
    {
        new 
iFile[MAX_PLAYER_NAME+10];
        
format(iFile,sizeof(iFile),"%s.dudb.sav",tmp);
        return 
1;
     }
  return 
1;