Help fast!
#1

Hello.
Can someone script me only level 5 can ... ?
Just see and do.

Quote:
Originally Posted by MadeMan
View Post
5. Link this FS with your admin system (if you want)

Just add this function to the admin script

pawn Code:
public GetPlayerAVSAdmin(playerid)
{
    return PlayerInfo[playerid][pAdmin];
}
You must use YOUR admin system variable. PlayerInfo[playerid][pAdmin] is just EXAMPLE.
Now, My admin function or whatever, Please replace it with "PlayerInfo[playerid][pAdmin];

Code:
if(AdminLevel[playerid] < 5) return SCM(playerid,COLOR_WHITE,"{AFAFAF}[Error]: {FFFFFF}You do not have the correct admin level for this command.");
I hope you understand me..
Reply
#2

Set your cursor at the start of PlayerInfo[playerid][pAdmin] and hold your left mouse button till the whole line is selected (blue), hit the right mousebutton and select 'copy' then select the part you want to replace, hit the right mouse button again and click 'paste'. There you go! It's not that hard, is it?

pawn Code:
if(PlayerInfo[playerid][pAdmin] < 3) return SCM(playerid,COLOR_WHITE,"{AFAFAF}[Error]: {FFFFFF}You do not have the correct admin level for this command.");
Reply
#3

Quote:
Originally Posted by Schneider
View Post
Set your cursor at the start of PlayerInfo[playerid][pAdmin] and hold your left mouse button till the whole line is selected (blue), hit the right mousebutton and select 'copy' then select the part you want to replace, hit the right mouse button again and click 'paste'. There you go! It's not that hard, is it?

pawn Code:
if(PlayerInfo[playerid][pAdmin] < 3) return SCM(playerid,COLOR_WHITE,"{AFAFAF}[Error]: {FFFFFF}You do not have the correct admin level for this command.");
Man, Not this, I want move AdminLevel[playerid] < 5 to PlayerInfo.


So, Is this true ?

PHP Code:
public GetPlayerAVSAdmin(playerid)
{
    return 
AdminLevel[playerid] < 5;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)