SA-MP Forums Archive
How do i? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How do i? (/showthread.php?tid=134131)



How do i? - ScottCFR - 15.03.2010

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


Re: How do i? - Keeboo13 - 15.03.2010

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;
	  		}



Re: How do i? - ScottCFR - 15.03.2010

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.)


Re: How do i? - Keeboo13 - 15.03.2010

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


Re: How do i? - ScottCFR - 15.03.2010

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


Re: How do i? - aircombat - 15.03.2010

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;
}


Re: How do i? - ScottCFR - 15.03.2010

Thanks Seif


Re: How do i? - ScottCFR - 15.03.2010

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);}



Re: How do i? - Jeffry - 15.03.2010

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


Re: How do i? - ScottCFR - 15.03.2010

Got the same thing