08.02.2011, 13:35
Hi all, I'm making a system which adds car parts to cars, for example, a spoiler. So each car have a different coordinates to attach the spoiler.
There are a fast way to identify the vehicle and attach the coordinates that, for example, will be stored in an enum or in a txt file?
Thanks
pawn Код:
CMD:spoiler(playerid,params[])
{
if(IsPlayerInVehicle(playerid,540)) AttachObjectToVehicle(spoiler,vehicleid,"540 coordinates");
// This is a long way...
return 1;
}
Thanks