25.12.2011, 19:56
Код:
CMD:oriided(playerid, params[]) { new c; if(sscanf(params, "i", c)) return SendClientMessage(playerid, COLOR_GRAD1, "Kasuta /oriided [SkinID]"); new State; new bizId = PlayerAtBiz(playerid, State, 25.0); if(bizId != 12) return SendClientMessage(playerid, COLOR_GRAD2, "You are not bingo!"); if(State != 2) return SendClientMessage(playerid, COLOR_GRAD2, "You are not in side bingo!"); if(GetPlayerMoneyEx(playerid) < 99) return SendClientMessage(playerid, COLOR_GRAD2, "You dont have money!"); if(IsInvalidSkin©) return ErrorMsg(playerid, "You cant not buy this skin!"); if((c > 299 || c < 1)) { SendClientMessage(playerid, COLOR_GREY, "We dont have this skin"); return 1; } if(KasutajaInfo[playerid][pSex] == 2) { if(c == 193 || c == 69 || c == 10 || c == 238 || c == 233 || c == 232 || c == 245 || c == 11 || c == 195 || c == 41 || c == 243 || c == 89 || c == 215 || c == 93 || c == 9 || c == 237 || c == 169 || c == 148 || c == 218 || c == 12 || c == 131 || c == 216 || c == 129 || c == 130 || c == 196 || c == 199 || c == 56 || c == 88 || c == 207 || c == 205 || c == 42 || c == 121 || c == 225 || c == 191 || c == 54 || c == 198 || c == 226 || c == 91 || c == 219 || c == 211 || c == 141 || c == 224 || c == 31 || c == 190 || c == 39 || c == 214 || c == 77 || c == 76 || c == 192 || c == 64 || c == 85 || c == 157 || c == 201) { GivePlayerMoneyEx(playerid,-(100)); FirmaInfo[12][bBank] += 75/2; FirmaInfo[12][bProducts]--; OnBizzUpdate(12); SendClientMessage(playerid, COLOR_GREY, "You buy new skin. Cost 100 SAKi!"); SafeSetPlayerSkin(playerid, c); KasutajaInfo[playerid][pModel] = c; TogglePlayerControllable(playerid, 1); } else { SendClientMessage(playerid, COLOR_GREY, "These clothes do not suit you"); } } if(KasutajaInfo[playerid][pSex] == 1) { if(c == 193 || c == 69 || c == 10 || c == 238 || c == 233 || c == 232 || c == 245 || c == 11 || c == 195 || c == 41 || c == 243 || c == 89 || c == 215 || c == 93 || c == 9 || c == 237 || c == 169 || c == 148 || c == 218 || c == 12 || c == 131 || c == 216 || c == 129 || c == 130 || c == 196 || c == 199 || c == 56 || c == 88 || c == 207 || c == 205 || c == 42 || c == 121 || c == 225 || c == 191 || c == 54 || c == 198 || c == 226 || c == 91 || c == 219 || c == 211 || c == 141 || c == 224 || c == 31 || c == 190 || c == 39 || c == 214 || c == 77 || c == 76 || c == 192 || c == 64 || c == 85 || c == 157 || c == 201) { SendClientMessage(playerid, COLOR_GREY, "These clothes do not suit you"); } else { GivePlayerMoneyEx(playerid,-(100)); FirmaInfo[12][bBank] += 75/2; FirmaInfo[12][bProducts]--; OnBizzUpdate(12); SendClientMessage(playerid, COLOR_GREY, "You buy new skin.Cost 100 SAKi!"); SafeSetPlayerSkin(playerid, c); KasutajaInfo[playerid][pModel] = c; TogglePlayerControllable(playerid, 1); } } return 1; }