SA-MP Forums Archive
Help me - 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: Help me (/showthread.php?tid=581609)



Help me - Edw - 14.07.2015

How can I make them look all the players in place?
PHP код:
    if(strcmp(cmd"/alias"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            if(
PlayerInfo[playerid][pAdmin] >= 1)
            {
                
tmp strtok(cmdtextidx);
                if(!
strlen(tmp))
                {
                    
SendClientMessage(playeridCOLOR_SERVER"Foloseste: {FFFFFF}/alias [playerid]");
                    return 
1;
                }
                
giveplayerid ReturnUser(tmp);
                new 
playerip[36], playersip[36], count;
                
GetPlayerIp(giveplayeridplayeripsizeof(playerip));
                if(
IsPlayerConnected(giveplayerid))
                {
                    for(new 
0MAX_PLAYERSi++)
                    {
                        if(
IsPlayerConnected(i))
                        {
                            
GetPlayerIp(iplayersipsizeof(playersip));
                            if(!
strcmp(playeripplayersip))
                            {
                                
GetPlayerName(isendernamesizeof(sendername));
                                
format(string256"Conturi online %s: %s"GetName(playerid), sendername);
                                
count ++;
                            }
                        }
                    }
                    if(
count == 1) return SCM(playerid, -1"Acest player nu are mai multe conturi online!");
                    
SCM(playeridCOLOR_WHITEstring);
                    return 
1;
                }
            }
        }
        return 
1;
    } 



Re: Help me - Edw - 15.07.2015

help me, please!


Re: Help me - SpikY_ - 15.07.2015

you mean their GPS? there location where are they?


Re: Help me - Edw - 16.07.2015

If there are more, I want to display them all and do not know how to do ...