SA-MP Forums Archive
[HELP] Teleport Problem "LUXAdmin System" - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Teleport Problem "LUXAdmin System" (/showthread.php?tid=186850)



[HELP] Teleport Problem "LUXAdmin System" - jonnyboy - 31.10.2010

Normal
pawn Код:
//-----------------------------------
    if(strcmp(cmdtext, "/adminbase", true, 3) == 0)
    {
        SetPlayerPos(playerid, 1694.74609375, -1502.1645507813, 1841.9893798828);
        SetPlayerFacingAngle(playerid, 0);
        return 1;
    }
Dosen't work
pawn Код:
if(strcmp(cmdtext, "/adminbase", true, 3) == 0)
{
if(AccInfo[playerid][Level] >= 1)
{
        SetPlayerPos(playerid, 1694.74609375, -1502.1645507813, 1841.9893798828);
        SetPlayerFacingAngle(playerid, 0);
        return 1;
        }
}
works but can't find /adminbase command
pawn Код:
if(strcmp(cmdtext, "/adminbase", true, 3) == 0)
{
        if(!IsPlayerAdmin(playerid)) return 0;
        SetPlayerPos(playerid, 1694.74609375, -1502.1645507813, 1841.9893798828);
        SetPlayerFacingAngle(playerid, 0);
        return 1;
}
does anyone know how to make this work for luxadmin system?


Re: Help plz - Kitten - 31.10.2010

First of read posting rules no Help Plz
https://sampforum.blast.hk/showthread.php?tid=45235

and your problem is?
i dont get
Quote:

works but can't find /adminbase command

you meant the command goes
SERVER: unknown command or?


Re: Help plz - jonnyboy - 31.10.2010

Quote:
Originally Posted by Kitten
Посмотреть сообщение
SERVER: unknown command or?
i get that.

and im gonna change the title


Re: [HELP] Teleport Problem "LUXAdmin System" - Kitten - 31.10.2010

try

pawn Код:
if(strcmp(cmdtext, "/adminbase", true, 3) == 0)
{
        if(!IsPlayerAdmin(playerid)) return 1;
        SetPlayerPos(playerid, 1694.74609375, -1502.1645507813, 1841.9893798828);
        SetPlayerFacingAngle(playerid, 0);
        return 1;
}



Re: [HELP] Teleport Problem "LUXAdmin System" - jonnyboy - 31.10.2010

Quote:
Originally Posted by Kitten
Посмотреть сообщение
try

pawn Код:
if(strcmp(cmdtext, "/adminbase", true, 3) == 0)
{
        if(!IsPlayerAdmin(playerid)) return 1;
        SetPlayerPos(playerid, 1694.74609375, -1502.1645507813, 1841.9893798828);
        SetPlayerFacingAngle(playerid, 0);
        return 1;
}
nothing happend.

i wrote /adminbase and i didn't teleported there.


Re: [HELP] Teleport Problem "LUXAdmin System" - Kitten - 31.10.2010

Quote:
Originally Posted by jonnyboy
Посмотреть сообщение
nothing happend.

i wrote /adminbase and i didn't teleported there.
lol try this

pawn Код:
if(strcmp(cmdtext, "/adminbase", true, 3) == 0)
    {
        if(!IsPlayerAdmin(playerid))
        SetPlayerPos(playerid, 1694.74609375, -1502.1645507813, 1841.9893798828);
        SetPlayerFacingAngle(playerid, 0);
        return 1;
    }



Re: [HELP] Teleport Problem "LUXAdmin System" - jonnyboy - 31.10.2010

Quote:
Originally Posted by Kitten
Посмотреть сообщение
lol try this

pawn Код:
if(strcmp(cmdtext, "/adminbase", true, 3) == 0)
    {
        if(!IsPlayerAdmin(playerid))
        SetPlayerPos(playerid, 1694.74609375, -1502.1645507813, 1841.9893798828);
        SetPlayerFacingAngle(playerid, 0);
        return 1;
    }
works

but how do i know if registered can't come there?


Re: [HELP] Teleport Problem "LUXAdmin System" - Kitten - 31.10.2010

depends on which admin system u using


Re: [HELP] Teleport Problem "LUXAdmin System" - jonnyboy - 31.10.2010

Quote:
Originally Posted by Kitten
Посмотреть сообщение
depends on which admin system u using
lol it says on title "LUXAdmin System"


Re: [HELP] Teleport Problem "LUXAdmin System" - Kitten - 31.10.2010

so u are saying LuxAdmin levels for a example

pawn Код:
if(strcmp(cmdtext, "/adminbase", true, 3) == 0)
    {
        if(IsPlayerLuxAdminLevel(playerid,4)) // the level u want only can use for this on i picked 4
        SetPlayerPos(playerid, 1694.74609375, -1502.1645507813, 1841.9893798828);
        SetPlayerFacingAngle(playerid, 0);
        }
        else SendClientMessage(playerid, COLOR_WHITE, "ERROR: You not is Administrator Level 4");
        return 1;
    }
make sure u have
pawn Код:
#include <ladmin>
EDIT: i think thats what u want
and this will actually help with the register because u must be level 4 admin lux admin and if u are not registered u can go there even if u are registered u must be admin