Scripting help - 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: Scripting help (
/showthread.php?tid=523423)
Scripting help -
kirostar - 02.07.2014
I need /getall command for my admin system
Re: Scripting help -
awsomedude - 02.07.2014
Why not post here
https://sampforum.blast.hk/showthread.php?tid=447813 since Scripting help helps people who need help with their code not ask for a script.
Re: Scripting help -
kirostar - 02.07.2014
i don't want scripters, i only want the script!
Re: Scripting help -
awsomedude - 02.07.2014
Quote:
Originally Posted by kirostar
i don't want scripters, i only want the script!
|
Re: Scripting help -
Lynn - 02.07.2014
Код:
CMD:getall(playerid, params[])
{
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new Float:pos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerPos(i, pos[0], pos[1], pos[2]);
}
}
return 1;
}
Re: Scripting help -
kirostar - 02.07.2014
The thread is closed Guys
Re: Scripting help -
Lynn - 02.07.2014
Edited original post.
Re: Scripting help -
kirostar - 02.07.2014
I want it for my admin system please
Re: Scripting help -
Lynn - 02.07.2014
Код:
CMD:getall(playerid, params[])
{
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && pInfo[playerid][pAdmin] >= 1) // Player looped is connected, and Level 1 admin.
{
new Float:pos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerPos(i, pos[0], pos[1], pos[2]);
}
}
return 1;
}
Re: Scripting help -
OKStyle - 02.07.2014
pawn Код:
CMD:getall(playerid, params[])
{
if(pInfo[playerid][pAdmin] < 1) return 1;
new Float:pos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
for(new i = GetMaxPlayers() - 1; i != -1; i--)
{
if(!IsPlayerConnected(i) || IsPlayerNPC(i)) continue;
SetPlayerPos(i, pos[0], pos[1], pos[2]);
}
return 1;
}