[HELP]Only Admins but how????
#1

Hey guys i m using a script by young_capone that is Admin island but the problem is the comamnds which are included in the script that can also can be used by other players that are not admins..........so how can i make a command that can only used by the admin .........I am using Lux admin script........please help
if need the script tell me........
Help please

Thanks in advance!!!!!
Reply
#2

What Admin Script You Use?
Reply
#3

Quote:
Originally Posted by Shoaib
Посмотреть сообщение
What Admin Script You Use?
Lux Admin Script!
Reply
#4

Quote:
Originally Posted by Shoaib
Посмотреть сообщение
What Admin Script You Use?
Quote:

.........I am using Lux admin script........please help

Example code
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/island", true) == 0)
    {
         if(!IsPlayerLuxAdmin(playerid)) return SendClientMessage(playerid, 0xFFFFFFAA, "This command is just for admins");
         {
            //code
         }
    {
    return 1;
{
^ You can do like that
Reply
#5

Quote:
Originally Posted by CyberGhost
Посмотреть сообщение
Example code
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/island", true) == 0)
    {
         if(!IsPlayerLuxAdmin(playerid)) return SendClientMessage(playerid, 0xFFFFFFAA, "This command is just for admins");
         {
            //code
         }
    {
    return 1;
{
^ You can do like that

After doing this i got this error
Код:
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\filterscripts\AdminHouse.pwn(287) : error 017: undefined symbol "IsPlayerLuxAdmin"
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\filterscripts\AdminHouse.pwn(299) : error 017: undefined symbol "IsPlayerLuxAdmin"
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\filterscripts\AdminHouse.pwn(305) : error 017: undefined symbol "IsPlayerLuxAdmin"
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\filterscripts\AdminHouse.pwn(311) : error 017: undefined symbol "IsPlayerLuxAdmin"
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\filterscripts\AdminHouse.pwn(317) : error 017: undefined symbol "IsPlayerLuxAdmin"
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\filterscripts\AdminHouse.pwn(323) : error 017: undefined symbol "IsPlayerLuxAdmin"
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\filterscripts\AdminHouse.pwn(329) : error 017: undefined symbol "IsPlayerLuxAdmin"
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\filterscripts\AdminHouse.pwn(335) : error 017: undefined symbol "IsPlayerLuxAdmin"
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\filterscripts\AdminHouse.pwn(341) : error 017: undefined symbol "IsPlayerLuxAdmin"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


9 Errors.
What can i do now??
adding
Код:
#define IsPlayerLuxAdmin
Will work?

EDIT: When i logged in as admin and type /ahouse this showed me
This command is just for admins


what can i do?
Reply
#6

Quote:
Originally Posted by ronaldoraul
Посмотреть сообщение
After doing this i got this error
Код:
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\filterscripts\AdminHouse.pwn(287) : error 017: undefined symbol "IsPlayerLuxAdmin"
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\filterscripts\AdminHouse.pwn(299) : error 017: undefined symbol "IsPlayerLuxAdmin"
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\filterscripts\AdminHouse.pwn(305) : error 017: undefined symbol "IsPlayerLuxAdmin"
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\filterscripts\AdminHouse.pwn(311) : error 017: undefined symbol "IsPlayerLuxAdmin"
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\filterscripts\AdminHouse.pwn(317) : error 017: undefined symbol "IsPlayerLuxAdmin"
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\filterscripts\AdminHouse.pwn(323) : error 017: undefined symbol "IsPlayerLuxAdmin"
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\filterscripts\AdminHouse.pwn(329) : error 017: undefined symbol "IsPlayerLuxAdmin"
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\filterscripts\AdminHouse.pwn(335) : error 017: undefined symbol "IsPlayerLuxAdmin"
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\filterscripts\AdminHouse.pwn(341) : error 017: undefined symbol "IsPlayerLuxAdmin"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


9 Errors.
What can i do now??
adding
Код:
#define IsPlayerLuxAdmin
Will work?

EDIT: When i logged in as admin and type /ahouse this showed me
This command is just for admins


what can i do?
If your using the admin island as a FilterScript then add it to your GameMode
Reply
#7

Quote:
Originally Posted by CyberGhost
Посмотреть сообщение
If your using the admin island as a FilterScript then add it to your GameMode
How can i do that ??
Reply
#8

Quote:
Originally Posted by CyberGhost
Посмотреть сообщение
If your using the admin island as a FilterScript then add it to your GameMode
How can i do that ??
Reply
#9

You should INCLUDE not DEFINE the LuxAdmin .inc file. (idk its name)
Reply
#10

Quote:
Originally Posted by Seven_of_Nine
Посмотреть сообщение
You should INCLUDE not DEFINE the LuxAdmin .inc file. (idk its name)
Can you help in anyway?
Reply


Forum Jump:


Users browsing this thread: 9 Guest(s)