Lock skins with same ID's for different players?
#1

First of all, hello to everyone, now lets move to the question... so as the title says, I want to find out how to lock two/three or even more skins with same IDs (lets say ID 19, the DJ with the red hat) for different players.

Note: I dont want ONE skin to be locked for two/three players, I want 3 skins in the skin selection (with same ids) to be locked for different players..anyways..I tried by locking them by ID's, but If I lock one skin ID for a player, I cant lock that skin anymore for anyone else (tried under OnPlayerSpawn), also I've tried locking it by classid's but unluckily I dont really get how I can do it..

I tried this way:

Код:
      } else if (classid == 44) {
      	new pName[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
        if(strcmp(pName, "NAMEHERE", false) == 0)
        {
                  gTeam[playerid] = TEAM_HERE;
        }
        else
	{
        SendClientMessage(playerid, 0xFF0000AA, "This skin is locked for NAMEHERE only.");
        return 0;
	}
But it stills lets every player spawn, if someone tell me how to do this, it would be appreciated.. plus Repped, but anyways, Im sure most of you know how to do it.. so yeah, I will be waiting for a reply.
Reply
#2

Any other solutions ?
Reply
#3

public OnPlayerRequestSpawn(playerid)
{
new skin = GetPlayerSkin(playerid);
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if((skin == 240) && (strcmp(name, "NAME FOR DUDE", true) == 1))
{
SendClientMessage(playerid,COLOR_RED,"This Skin Is Locked For Fool........");
SetPlayerHealth(playerid,0);
return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)