19.07.2010, 21:53
Okay so my FD needs to be able to do /bunkergear and they get well bunker gear. but the thing is i need the bunker gear skin to be based on the player's rank in that faction.
is a basic command.
and i know i need faction type 2 and the rank is 1 so.... it should be this
and like if the player rank is 3 it should make it skin id 278
and that would be like this
how would i put those two in with one another.
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/bunkergear", true) == 0) { SetPlayerSkin(playerid, 277); return 1; } return 0; }
and i know i need faction type 2 and the rank is 1 so.... it should be this
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/bunkergear", true) == 0) if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 2) { if(PlayerInfo[playerid][pRank] != 1) { SetPlayerSkin(playerid, 277); return 1; } return 0; }
and that would be like this
Код:
if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 2) { if(PlayerInfo[playerid][pRank] != 2) { SetPlayerSkin(playerid, 278);