Problem. - 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: Problem. (
/showthread.php?tid=78709)
Problem. -
SkyBy - 22.05.2009
I have a problem. I want to set like if player is admin, he can get that skin, but when I am admin, I can't get that skin..
It is under OnPlayerRequestSpawn.
pawn Код:
if(GetPlayerSkin(playerid) == 123)
{
if(!IsPlayerAdmin(playerid) || !IsPlayerModerator(playerid) || GetPlayerAdminLevel(playerid) == 0)
{
SendClientMessage(playerid, COLOR_RED, "This skin is only for admins.");
return 0;
}
return 1;
}
Sorry for my bad English.
Re: Problem. -
member - 22.05.2009
you want skin id 123 to be given to the player when he
spawns if he is an admin or do you want to do this through a command?
Re: Problem. -
Weirdosport - 22.05.2009
You can't use GetPlayerSkin in that instance, see this tutorial:
https://sampwiki.blast.hk/wiki/AdminSkins
Re: Problem. -
SkyBy - 23.05.2009
Problem fixed. Thanks.