How do i?
#1

Ok, I wanna make an Admin only skin. I use seif admin in a FS. How would i define sAccounts in my Game Mode?
Reply
#2

yoy have to makew it like if player choose the adminskin they will get kick like
Код:
am example is some thing like this
Код:
	  	if(PlayerInfo[playerid][pAdmin] < 1)
 			{
 			else
	  		KickPlayer[playerid] = 1;
	  		}
Reply
#3

Well this is on the Seif-Admin script, Like to make commands for certain levels


Код:
if (AccountInfo[playerid][AdminLevel] >= 5 || IsPlayerAdmin(playerid))
But it's undefined? (in my game mode, Filter script and game mode, Two different things.)
Reply
#4

Код:
if (AccountInfo[playerid][AdminLevel] >= 5 || IsPlayerAdmin(playerid))
 			{
 			else
	  		KickPlayer[playerid] = 1;
	  		}
Well Some Like that...
Reply
#5

i know, But i need to know how to define it in my gamemode, Seif admin is in a filterscript
Reply
#6

OnPlayerRequestSpawn :

if(classid == 1) // 1 is the first AddPlayerClass and 2 is the 2nd etc
{
if(IsPlayerAdmin(playerid))
{
return 1;
}
else
{
SendClientMessage(playerid,COLOR,"Admin Skin Only");
return 0;
}
return 1;
}
Reply
#7

Thanks Seif
Reply
#8

When i compile i get
Код:
(525) : error 036: empty statement
Line 525:
Код:
	if(classid == 16) {if (IsPlayerSeifAdmin(playerid) >= 5 || IsPlayerAdmin(playerid)); GameTextForPlayer(playerid,"~R~Admin",5000,5);}
Reply
#9

pawn Код:
if(classid == 16) {
if (IsPlayerSeifAdmin(playerid) >= 5 || IsPlayerAdmin(playerid)) {
GameTextForPlayer(playerid,"~R~Admin",5000,5);
}
}
Try this.
Reply
#10

Got the same thing
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)