04.11.2016, 15:32
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(vehicleid == 448) { SendClientMessage(playerid, -1, "{CE0000}Job: You can start the Pizzaboy job by using {00FF00}/pizza"); } else if(vehicleid == 596) { SetPlayerWantedLevelEx(playerid,GetPlayerWantedLevel(playerid)+3); } else if(vehicleid == 597) { SetPlayerWantedLevelEx(playerid,GetPlayerWantedLevel(playerid)+3); } else if(vehicleid == 598) { SetPlayerWantedLevelEx(playerid,GetPlayerWantedLevel(playerid)+3); } else if(vehicleid == 599) { SetPlayerWantedLevelEx(playerid,GetPlayerWantedLevel(playerid)+3); } else if(vehicleid == 497) { SetPlayerWantedLevelEx(playerid,GetPlayerWantedLevel(playerid)+3); } else if(vehicleid == 523) { SetPlayerWantedLevelEx(playerid,GetPlayerWantedLevel(playerid)+3); } else if(vehicleid == 490) { SetPlayerWantedLevelEx(playerid,GetPlayerWantedLevel(playerid)+3); } else if(vehicleid == 601) { SetPlayerWantedLevelEx(playerid,GetPlayerWantedLevel(playerid)+3); } else if(vehicleid == 528) { SetPlayerWantedLevelEx(playerid,GetPlayerWantedLevel(playerid)+3); } else if(vehicleid == 427) { SetPlayerWantedLevelEx(playerid,GetPlayerWantedLevel(playerid)+3); } else if(vehicleid == 470) { SetPlayerWantedLevelEx(playerid,GetPlayerWantedLevel(playerid)+3); } else if(vehicleid == 520 && pInfo[playerid][pArmy] == 0) { SCM(playerid,COLOR_RED,"You aren't in army"); RemovePlayerFromVehicle(playerid); } else if(vehicleid == 432 && pInfo[playerid][pArmy] == 0) { SCM(playerid,COLOR_RED,"You aren't in army"); RemovePlayerFromVehicle(playerid); } else if(vehicleid == 425 && pInfo[playerid][pArmy] == 0) { SCM(playerid,COLOR_RED,"You aren't in army"); RemovePlayerFromVehicle(playerid); } return 0; }