14.04.2009, 11:17
Tutorial
Allowing Admins/Non Admins to mess with your teleports!
Depending on your situation, you may want Non-Admins to have teleport making powers, in which case the following tutorial will instruct you! Also, if you use a "foreign" admin script, like Ladmin, gadmin, xadmin.. the list goes on.. you may not want people using your RCON logon!
1.) Load the telesystem.pwn in a PAWN editing client (I use PAWNO)
2.) Locate the stock at the top of the script, that by default looks like this: (It's in the Edit box)
3.) To enable anyone to use the teleport commands, change it to:
4.) To allow "foreign" admin script admins to use the the admin script commands, you will have to locate the IsPlayerAdmin command specific to that script. In the case of LAdmin, it would look something like:
_________________________________________________
Changing Message Colour
This is fairly elementary, but i'm sure somebody will be wondering..
1.) Load the telesystem.pwn in a PAWN editing client (I use PAWNO)
2.) Locate the following line:
3.) Change 0xFF00FFFF to suit your needs. If you're not sure about this, try a colour picking client like the one HERE
Allowing Admins/Non Admins to mess with your teleports!
Depending on your situation, you may want Non-Admins to have teleport making powers, in which case the following tutorial will instruct you! Also, if you use a "foreign" admin script, like Ladmin, gadmin, xadmin.. the list goes on.. you may not want people using your RCON logon!
1.) Load the telesystem.pwn in a PAWN editing client (I use PAWNO)
2.) Locate the stock at the top of the script, that by default looks like this: (It's in the Edit box)
pawn Код:
stock AdminCheck(playerid)
{
if(IsPlayerAdmin(playerid)) return 1;
return 0;
}
pawn Код:
stock AdminCheck(playerid)
{
#pragma unused playerid
return 1;
}
pawn Код:
#include <IsPlayerLAdmin>
pawn Код:
stock AdminCheck(playerid)
{
if(IsPlayerLAdmin(playerid) || IsPlayerAdmin(playerid)) return 1;
return 0;
}
_________________________________________________
Changing Message Colour
This is fairly elementary, but i'm sure somebody will be wondering..
1.) Load the telesystem.pwn in a PAWN editing client (I use PAWNO)
2.) Locate the following line:
pawn Код:
#define COMMAND_COLOUR 0xFF00FFFF