Single to Multiple Admin Skin - 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: Single to Multiple Admin Skin (
/showthread.php?tid=157991)
Single to Multiple Admin Skin -
Rolyy - 08.07.2010
Yesterday I've added 4 other admin skins into the admin team, but this peace of scripting keeps only my old one "protected" from getting abused by normale players. And i want all my 5 admin skins getting "protected".
Код:
if(ServerInfo[AdminOnlySkins] == 1) {
if( (GetPlayerSkin(playerid) == ServerInfo[AdminSkin]) || (GetPlayerSkin(playerid) == ServerInfo[AdminSkin2]) ) {
if(PlayerInfo[playerid][Level] >= 1)
GameTextForPlayer(playerid,"~b~Welcome~n~~w~Admin",3000,1);
else {
GameTextForPlayer(playerid,"~r~This Skin Is For~n~Administrators~n~Only",4000,1);
SetTimerEx("DelayKillPlayer", 2500,0,"d",playerid);
return 1;
}
}
}
0 warnings
0 errors
Re: Single to Multiple Admin Skin -
Jeffry - 08.07.2010
Show the Variable
ServerInfo[AdminSkin] & ServerInfo[AdminSkin2]
There where you defined it.