public OnPlayerModelSelectionEx(playerid, response, extraid, modelid) { if(!response) return 1; if(extraid == 1) //Clothing items { printf("debug: %d", modelid); if(isCopCloth(modelid) && GetPVarInt(playerid, "Member") != 1 || GetPVarInt(playerid, "Member") != 2 || GetPVarInt(playerid, "Member") != 8) return scm(playerid, COLOR_LIGHTRED, "it's only for government."); if(isDonatorCloth(modelid) && GetPVarInt(playerid, "DonateRank") == 0 || GetPVarInt(playerid, "MonthDon") == 0) return scm(playerid, COLOR_LIGHTRED, "It's only for donator."); SetPVarInt(playerid, "ToyModelC", modelid); ShowPlayerDialog(playerid, 294, DIALOG_STYLE_LIST, "Select Bone", "脊柱\n头部\n左臂\n右臂\n左手\n右手\n左腿\n右腿\n左脚\n右脚\n右小腿\n左小腿\n左前臂\n右前臂\n左肩\n右肩\n脖子\n下巴", "选择","取消"); }
stock isCopCloth(modelid) { if(modelid >= 19974 && modelid <= 19785 || modelid == 19347 || modelid == 19942 || modelid == 19520 || modelid == 19521 || modelid == 18637 || modelid == 19141) return 1; else return 0; } stock isDonatorCloth(modelid) { if(modelid == 11704 || modelid == 1588 || modelid == 18963 || modelid == 19878 || modelid == 19528) return 1; else return 0; }
if((isCopCloth(modelid) && GetPVarInt(playerid, "Member") != 1) || GetPVarInt(playerid, "Member") != 2 || GetPVarInt(playerid, "Member") != 8) return scm(playerid, COLOR_LIGHTRED, "it's only for government.");
if((isDonatorCloth(modelid) && GetPVarInt(playerid, "DonateRank") == 0) || GetPVarInt(playerid, "MonthDon") == 0) return scm(playerid, COLOR_LIGHTRED, "It's only for donator.");
PHP код:
|
if(isCopCloth(modelid)) {
if((GetPVarInt(playerid, "Member") != 1) && (GetPVarInt(playerid, "Member") != 2) && (GetPVarInt(playerid, "Member") != 8)) {
return scm(playerid, COLOR_LIGHTRED, "it's only for government.");
}
}
if(isDonatorCloth(modelid)) {
if((GetPVarInt(playerid, "DonateRank") == 0) && (GetPVar(playerid, "MonthDon") == 0)) {
return scm(playerid, COLOR_LIGHTRED, "It's only for donator.");
}
}
if(isCopCloth(modelid) && ((GetPVarInt(playerid, "Member") != 1) && (GetPVarInt(playerid, "Member") != 2) && (GetPVarInt(playerid, "Member") != 8))) {
return scm(playerid, COLOR_LIGHTRED, "it's only for government.");
}
if(isDonatorCloth(modelid) && ((GetPVarInt(playerid, "DonateRank") == 0) && (GetPVar(playerid, "MonthDon") == 0))) {
return scm(playerid, COLOR_LIGHTRED, "It's only for donator.");
}