16.02.2009, 07:22
Hey guys, I just have 2 questions please.
1. I have this in my script:
it tells me what the carid of the car is when i enter it, but ive been in servers where when i enter the car it tells me the actual name of it rather than the in game id. Can someone help me accomplish this please?
2. For my public IsACopCar, i have to define cars with the id's that the game gives you when you spawn one ((/veh))/((/oldcar)), and that is just a bitch going into every car just to get the id so i can add it to tell the game what is a cop car and what is not. How can i use MODEL IDS, like 596 = a police squad car, instead? What must i do to tell pawno to read model ids rather than carids/in game ids? Thank you.
1. I have this in my script:
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { new string[50]; format(string, sizeof(string), "~w~%d", vehicleid); GameTextForPlayer(playerid, string, 3000, 1);
2. For my public IsACopCar, i have to define cars with the id's that the game gives you when you spawn one ((/veh))/((/oldcar)), and that is just a bitch going into every car just to get the id so i can add it to tell the game what is a cop car and what is not. How can i use MODEL IDS, like 596 = a police squad car, instead? What must i do to tell pawno to read model ids rather than carids/in game ids? Thank you.