Problem.
#1

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.
Reply
#2

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?
Reply
#3

You can't use GetPlayerSkin in that instance, see this tutorial:

https://sampwiki.blast.hk/wiki/AdminSkins
Reply
#4

Problem fixed. Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)