RP scripting help please :)
#1

So... I'm new to PAWNO and wanted to make a car system filter script (or whatever lol) with cars that can be owned by State. So when we enter some car and if it's a state car it will say that it's owned by State and everyone can drive them... So can anyone explain me a bit how can I make that possible ?
Reply
#2

You can add vehicles in your game with
pawn Код:
new carid;
carid = AddStaticVehicle(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2);
this code creates the car and puts the id of the car in carid. If you create several cars you can put all the car ids of the State cars in an array. If a player then enters a vehicle you can get the car id of the car he is in. If that id is in your array of State car ids you can let him know he is in a State vehicle with
pawn Код:
SendClientMessage(playerid, 0xFFFFFFFF, "You have just entered a public vehicle.");
Reply
#3

thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)