[POMOC] /giverank

Započeo TheMonk, Januar 17, 2011, 17:46:49 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

E ovako,kad ubacim nekoga u svoju organizaciju i kucam /giverank i on dobije zenski skin....kotistim gtarp mod

if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
if(PlayerInfo[para1][pSex] == 1)
{
//Male Skin
if(PlayerInfo[para1][pRank] == 1) { PlayerInfo[para1][pChar] = 71; SetPlayerSkin(para1, 71); }
else if(PlayerInfo[para1][pRank] == 2) { PlayerInfo[para1][pChar] = 280; SetPlayerSkin(para1, 280); }
else if(PlayerInfo[para1][pRank] == 3) { PlayerInfo[para1][pChar] = 266; SetPlayerSkin(para1, 266); }
else if(PlayerInfo[para1][pRank] == 4) { PlayerInfo[para1][pChar] = 267; SetPlayerSkin(para1, 267); }
else if(PlayerInfo[para1][pRank] == 5) { PlayerInfo[para1][pChar] = 281; SetPlayerSkin(para1, 281); }
else if(PlayerInfo[para1][pRank] == 6) { PlayerInfo[para1][pChar] = 265; SetPlayerSkin(para1, 265); }
else if(PlayerInfo[para1][pRank] == 7) { PlayerInfo[para1][pChar] = 282; SetPlayerSkin(para1, 282); }
else if(PlayerInfo[para1][pRank] == 8) { PlayerInfo[para1][pChar] = 288; SetPlayerSkin(para1, 288); }
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pChar] = 211; SetPlayerSkin(para1, 211);
}
}


znaci imas ovakav code recimo za policiju

i sada....
if(PlayerInfo[para1][pSex] == 1)

ti ti pokazuje da se radi o muskoj osobi

else if(PlayerInfo[para1][pSex] == 2)

a ovo za zensku osobu.

sada ispod...
if(PlayerInfo[para1][pSex] == 1)

imas ovakav code
if(PlayerInfo[para1][pRank] == 1) { PlayerInfo[para1][pChar] = 71; SetPlayerSkin(para1, 71); }
to ti je za rank 1. a ako oces promjenit skin, onda umjesto boja "71" stavi ID skina kojeg zelis. i to je to. xD