[Ajuda] Olhadinha - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Olhadinha (
/showthread.php?tid=380335)
Olhadinha -
Natan_silva - 24.09.2012
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;
}
Re: Olhadinha -
Q.I - 24.09.2012
nao sei se esta certo o nao mais tal mal identado.
Re: Olhadinha -
ViniBorn - 25.09.2012
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;
}