Scripting help
#1

I need /getall command for my admin system
Reply
#2

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.
Reply
#3

i don't want scripters, i only want the script!
Reply
#4

Quote:
Originally Posted by kirostar
Посмотреть сообщение
i don't want scripters, i only want the script!
Reply
#5

Код:
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;
}
Reply
#6

The thread is closed Guys
Reply
#7

Edited original post.
Reply
#8

I want it for my admin system please
Reply
#9

Код:
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;
}
Reply
#10

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


Forum Jump:


Users browsing this thread: 2 Guest(s)