[Ajuda] Olhadinha
#1

Olha se ta tudo certo galera !
Код:
#include <a_samp>

COMMAND:trazertodos(playerid, params[])
{
    new Float:X,
	 Float:Y,
	  Float:Z,
	   don[250],
	    AdminName[24];
    GetPlayerPos(playerid, X, Y, Z);
    if (APlayerData[playerid][LoggedIn] == true)
	{
	  if (APlayerData[playerid][PlayerLevel] >= 5)
	  {
         for(new i = 0; i < MAX_PLAYERS; ++i)
         {
             if(IsPlayerConnected(I))
             {
                 SetPlayerPos(i, X+1, Y+1, Z);
             }
         }
         format(don, sizeof(don), "O Admin {1B95E0}%s{00C2EC} puxou todos os jogadores atй ele.", AdminName);
         SendClientMessageToAll(-1,don);
	  }
	}
    return 1;
}
Reply
#2

nao sei se esta certo o nao mais tal mal identado.
Reply
#3

Tб errado
pawn Код:
COMMAND:trazertodos(playerid, params[])
{
    if (APlayerData[playerid][LoggedIn] == true)
    {
        if (APlayerData[playerid][PlayerLevel] >= 5)
        {
            new Float:X, Float:Y, Float:Z, don[128], AdminName[24];
            GetPlayerPos(playerid, X, Y, Z);
            for(new i; i < MAX_PLAYERS; ++i)
                if(IsPlayerConnected(i))
                    SetPlayerPos(i, X+1, Y+1, Z);

            GetPlayerName(playerid, AdminName, MAX_PLAYER_NAME);
            format(don, sizeof(don), "O Admin {1B95E0}%s{00C2EC} puxou todos os jogadores atй ele.", AdminName);
            SendClientMessageToAll(-1,don);
        }
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)