[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
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