Help me
#1

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;
    } 
Reply


Messages In This Thread
Help me - by Edw - 14.07.2015, 11:02
Re: Help me - by Edw - 15.07.2015, 19:30
Re: Help me - by SpikY_ - 15.07.2015, 20:25
Re: Help me - by Edw - 16.07.2015, 18:37

Forum Jump:


Users browsing this thread: 2 Guest(s)