Skin CJ system
#1

Код:
If(PlayerInfo[playerid][pChar] == 1||PlayerInfo[playerid][pChar] == 2||PlayerInfo[playerid][pChar] == 3||PlayerInfo[playerid][pChar] == 4)
{
	SetPlayerSkin(playerid, 135);
	PlayerInfo[playerid][pChar] = 135;
}
Is that correct? I want make it, if anyone have CJ skin then system will change player skin who have CJ skin.
Reply
#2

Isn't CJs skin ID 0 ?
Reply
#3

Quote:
Originally Posted by dice7
Isn't CJs skin ID 0 ?
Код:
If(PlayerInfo[playerid][pChar] == 0||PlayerInfo[playerid][pChar] == 1||PlayerInfo[playerid][pChar] == 2||PlayerInfo[playerid][pChar] == 3||PlayerInfo[playerid][pChar] == 4)
{
	SetPlayerSkin(playerid, 135);
	PlayerInfo[playerid][pChar] = 135;
}
Is That Correct? This work's ?
Reply
#4

I would still use native functions rather then my own variables to find the players skin, since they are the most accurate.
But your example would work

pawn Код:
public OnPlayerSpawn(playerid)
{
  if(GetPlayerSkin(playerid) == 0)
  {
    SetPlayerSkin(playerid, 135);
    PlayerInfo[playerid][pChar] = 135;
    SendClientMessage(playerid, COLOR, "You can't use CJs skin. Changing to another one. Press F4 if you want to select a new skin");
  }
}
Reply
#5

Quote:
Originally Posted by dice7
I would still use native functions rather then my own variables to find the players skin, since they are the most accurate.
But your example would work

pawn Код:
public OnPlayerSpawn(playerid)
{
  if(GetPlayerSkin(playerid) == 0)
  {
    SetPlayerSkin(playerid, 135);
    PlayerInfo[playerid][pChar] = 135;
    SendClientMessage(playerid, COLOR, "You can't use CJs skin. Changing to another one. Press F4 if you want to select a new skin");
  }
}
Thanks, i test now.
// Tested, works. Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)