[HELP] Teleport Problem "LUXAdmin System"
#1

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?
Reply
#2

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

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

and im gonna change the title
Reply
#4

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

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

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

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?
Reply
#8

depends on which admin system u using
Reply
#9

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)