18.07.2012, 13:13
Hey all, i want to ask something and i need help from you all...
First this is my skin code :
The problem is not at there, i want make something unique like this :
- If my sex is male, so when i buy a female skin that not allowed...
- Same like that, if my sex is female i can't buy male skin...
Somebody can edit my code, for do like that?
First this is my skin code :
Код:
if(strcmp(cmd, "/clothes", true) == 0) { if(IsPlayerConnected(playerid)) { if(IsAtClothShop(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE,"USAGE: /clothes [Skin ID]"); return 1; } new level = strval(tmp); if(level == 0 || level == 70 || level == 71 || level == 147 || level == 163 || level == 164 || level == 165 || level == 211 || level == 252 || level == 265 || level == 266 || level == 266 || level == 267 || level >= 274 && level <= 288) { SendClientMessage(playerid , COLOR_GRAD2, "That skin is not allowed !"); return 1; } GivePlayerMoney(playerid,-150); SafeGivePlayerMoney(playerid, - 150); if(!IsValidSkin(level)) return SendClientMessage(playerid, COLOR_GREY, "Wrong skin ID!"); PlayerInfo[playerid][pModel] = level; SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]); } } return 1; }
- If my sex is male, so when i buy a female skin that not allowed...
- Same like that, if my sex is female i can't buy male skin...
Somebody can edit my code, for do like that?