12.01.2010, 14:50
Quote:
if(newcar >= 77 && newcar <= 79) { if (HireCar[playerid] != newcar) { format(string, sizeof(string), "~w~You can Rent this car~n~Cost:~g~$%d~n~~w~To rent type ~g~/rentcar~w~~n~to get out type ~r~/exit",SBizzInfo[1][sbEntranceCost]); TogglePlayerControllable(playerid, 0); GameTextForPlayer(playerid, string, 5000, 3); } } if(newcar >= 152 && newcar <= 155) { if (HireCar[playerid] != newcar) { format(string, sizeof(string), "~w~You can Rent this scooter~n~Cost:~g~$%d~n~~w~To rent type ~g~/rentscooter~w~~n~to get out type ~r~/exit",SBizzInfo[12][sbEntranceCost]); TogglePlayerControllable(playerid, 0); GameTextForPlayer(playerid, string, 5000, 3); } } if(newcar == 185 || newcar == 186 || newcar == 187) { if(PlayerInfo[playerid][pJob] != 7) { SendClientMessage(playerid, COLOR_GREY, " Your are not a Mechanic !"); RemovePlayerFromVehicle(playerid); } } if(newcar == 188 || newcar == 189 || newcar == 156 || newcar == 157 || newcar == 237 || newcar == 242 || newcar == 248 || newcar == 253 || newcar == 262) { if(PlayerInfo[playerid][pFlyLic] < 1) { if(TakingLesson[playerid] == 1) { } else { SendClientMessage(playerid, COLOR_GREY, " You don't know how to Fly yet, so you left the Plane !"); RemovePlayerFromVehicle(playerid); } } } if(newcar == 238 || newcar == 239 || newcar == 240 || newcar == 241 || newcar == 242 || newcar == 266) { if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6){ } else { SendClientMessage(playerid, COLOR_GREEN, " Your are not a Barzini member !"); RemovePlayerFromVehicle(playerid); } } if(newcar == 233 || newcar == 234 || newcar == 235 || newcar == 236 || newcar == 237 || newcar == 267) { if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5){ } else { SendClientMessage(playerid, COLOR_ORANGE, " Your are not a Tattaglia member !"); RemovePlayerFromVehicle(playerid); } } if(newcar == 244 || newcar == 245 || newcar == 246 || newcar == 247 || newcar == 248 || newcar == 249 || newcar == 265) { if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12){ } else { SendClientMessage(playerid, COLOR_BLACK2, " Your are not a Corleone member !"); RemovePlayerFromVehicle(playerid); } } if(newcar == 258 || newcar == 259 || newcar == 260 || newcar == 261 || newcar == 262 || newcar == 263 || newcar == 264 || newcar == 26 { if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13){ } else { SendClientMessage(playerid, TEAM_BALLAS_COLOR, " Your are not a Patterno member !"); RemovePlayerFromVehicle(playerid); } } if(newcar == 272 || newcar == 273 || newcar == 274 || newcar == 275 || newcar == 276) { if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14){ } else { SendClientMessage(playerid, COLOR_GREY, " Your are not in Tow Car Company !"); RemovePlayerFromVehicle(playerid); } } if(newcar == 277) { if(TakingLesson[playerid] == 1){} else { SendClientMessage(playerid, COLOR_GREY, " You are not allowed to drive this car !"); RemovePlayerFromVehicle(playerid); } } if(newcar == 237 || newcar == 242 || newcar == 24 { if(PlayerInfo[playerid][pRank] < 2) { SendClientMessage(playerid,COLOR_GREY," You need Rank 2 to Fly this baby !"); RemovePlayerFromVehicle(playerid); } } if(newcar == 138 || newcar == 255) { if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { if(PlayerInfo[playerid][pRank] >= 4){} else { SendClientMessage(playerid,COLOR_GREY," Your Rank is too Low !"); RemovePlayerFromVehicle(playerid); } } else { RemovePlayerFromVehicle(playerid); } } if(newcar == 149 || newcar == 150) { if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { if(PlayerInfo[playerid][pRank] >= 2){} else { SendClientMessage(playerid,COLOR_GREY," Your need Rank 2 to drive this car !"); RemovePlayerFromVehicle(playerid); } } else { RemovePlayerFromVehicle(playerid); } } if(newcar == 254) { if(PlayerInfo[playerid][pLevel] >= 5) { SendClientMessage(playerid, COLOR_YELLOW, "Type /rob to rob the Bank."); } else { SendClientMessage(playerid, COLOR_GREY, " Your need Level 7 to drive this van !"); RemovePlayerFromVehicle(playerid); } if(IsACop(playerid)) { SendClientMessage(playerid, COLOR_GREY, " Cops can't drive this Van !"); RemovePlayerFromVehicle(playerid); } } if(oldcar != 300) { if((housecar != oldcar && oldcar != 0) && (HireCar[playerid] != oldcar && newcar != housecar)) { if(gLastDriver[oldcar] == playerid && oldcar != newcar) { gLastDriver[oldcar] = 300; gCarLock[oldcar] = 0; UnLockCar(oldcar); } } } gLastCar[playerid] = newcar; gLastDriver[newcar] = playerid; } if(newstate == PLAYER_STATE_SPAWNED) { new Float: lwx, Float:lwy, Float:lwz; GetPlayerPos(playerid, lwx, lwy, lwz); if((lwz > 530.0 && PlayerInfo[playerid][pInt] == 0) || PlayerToPoint(1000.0, playerid, -1041.9,-1868.4,79.1)) //the highest land point in sa = 526.8 { SetPlayerSpawn(playerid); } if(WantedPoints[playerid] > 0) { new dstring[128]; new wanted = WantedPoints[playerid]; new diecash = 0; while(WantedPoints[playerid] > 0) { diecash += 500; WantedPoints[playerid] --; } format(dstring, sizeof(dstring), "You lost $%d for dieing with %d Wanted Points.", diecash, wanted); SendClientMessage(playerid, COLOR_YELLOW, dstring); GivePlayerMoney(playerid, - diecash); PlayerInfo[playerid][pWantedDeaths] += 1; } if(PlayerOnMission[playerid] > 0) { GameTextForPlayer(playerid, "~r~Mission failed", 5000, 3); PlayerOnMission[playerid] = 0; PlayerInfo[playerid][pMissionNr] = 0; } WantedPoints[playerid] = 0; WantedLevel[playerid] = 0; if(PlayerInfo[playerid][pLevel] > 0) { SetPlayerHealth(playerid, 100.0); } else { SetPlayerHealth(playerid, 50.0+PlayerInfo[playerid][pSHealth]); } MedicBill[playerid] = 1; TelePos[playerid][0] = 0.0; TelePos[playerid][1] = 0.0; gPlayerSpawned[playerid] = 1; SafeTime[playerid] = 60; } return 1; } |