SA-MP Forums Archive
How to set Skin ONLY for Admin with lAdmin - 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 to set Skin ONLY for Admin with lAdmin (/showthread.php?tid=127409)



How to set Skin ONLY for Admin with lAdmin - djdanni - 13.02.2010

I am wondering how i can put This skin is Only for Admin by using lAdmin? Any idear?


Re: How to set Skin ONLY for Admin with lAdmin - Jeffry - 13.02.2010

Under OnPlayerSpawn or anywhere else you want it.

pawn Код:
if(PlayerInfo[playerid][Level]>=1) SetPlayerSkin(playerid, 125);  //Just change the 125



Re: How to set Skin ONLY for Admin with lAdmin - djdanni - 13.02.2010

How do i know what skin is Witch? Liek Cops and that? And do i put it in the lAdmin.pawn?


Re: How to set Skin ONLY for Admin with lAdmin - Jeffry - 13.02.2010

Quote:
Originally Posted by DJ Danni
How do i know what skin is Witch? Liek Cops and that? And do i put it in the lAdmin.pawn?
For the skins: https://sampwiki.blast.hk/wiki/Category:Skins

And yes, put it under OnPlayerSpawn in your Ladmin.pwn and compile it.


Re: How to set Skin ONLY for Admin with lAdmin - djdanni - 15.02.2010

When i try to add it i get error

http://pawn.pastebin.com/d1e1903a


Re: How to set Skin ONLY for Admin with lAdmin - Jeffry - 15.02.2010

Show the lines/code please.


Re: How to set Skin ONLY for Admin with lAdmin - djdanni - 15.02.2010

pawn Код:
public OnPlayerSpawn(playerid)

if(PlayerInfo[playerid][Level]>=5) SetPlayerSkin(playerid, 287);  //Just change the 125
{
    if(ServerInfo[Locked] == 1 && PlayerInfo[playerid][AllowedIn] == false)
    {
        GameTextForPlayer(playerid,"~r~Server Locked~n~You must enter password before spawning~n~/password <password>",4000,3);
        SetTimerEx("DelayKillPlayer", 2500,0,"d",playerid);
        return 1;
    }
Here he is


Re: How to set Skin ONLY for Admin with lAdmin - djdanni - 15.02.2010

Still error
http://pawn.pastebin.com/d52e01549
Add me on MSN studio@toppfm.is


Re: How to set Skin ONLY for Admin with lAdmin - CuervO - 15.02.2010

pawn Код:
if(PlayerInfo[playerid][Level] >= 5) { SetPlayerSkin(playerid, 287); }



Re: How to set Skin ONLY for Admin with lAdmin - djdanni - 15.02.2010

nope still error