how to check if player has 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)
+--- Thread: how to check if player has skin (
/showthread.php?tid=428933)
how to check if player has skin -
firemanjv - 07.04.2013
i want to check if player has skin
like this
Код:
if(!IsPlayerAdmin(playerid)) return SCM(playerid, -1,"{FF0000}You must be rcon admin.");
but than with skins
Id's
165, 166, 280, 281, 282, 283, 288, ,284, 285, 286, 287, 163, 164
is this possible please tell me how of show me an example
Re: how to check if player has skin -
L.Hudson - 07.04.2013
pawn Код:
if(GetPlayerSkin(playerid) == skinhere) return etc etc...
Re: how to check if player has skin -
Djole1337 - 07.04.2013
pawn Код:
switch (GetPlayerSkin(playerid))
{
case 165, 166, 280..283, 288, 284..287, 163, 164:
{
if (!IsPlayerAdmin(playerid))
// do what you want
}
}