Quote:
|
Originally Posted by Suicid3
try something like
Code:
if(save == 1 || equal(save1, "1")) {
get_cvar_string("rp_carsfile",szFilename,63)
if (!file_exists(szFilename)) return PLUGIN_HANDLED
new message[64]
format(message, 63, "amx_makecar %s %i %i %i Angles{ %f , %f , %f }", itemname, origin[0], origin[1], origin[2] , angles[0] , angles[1] , angles[2])
write_file(szFilename,message,-1)
}
|
I think it wont work as I need... because this part of the script only write down in carsfile.ini these informations: origin[0], origin[1], origin[2] and the other information should be only one value that determines to where the car is pointing...
I know that when the cript loads the four car informations (3 origins and 1 angle) it loads correctly, I know this bexause I changed manually the fourth value (the angle one) in carsfile.ini and there was the car looking at the right direction...
look what contains in the carsfile.ini
Code:
; CAR SPAWNS HERE
amx_makecar car_polambo -980 -3146 -259 0
amx_makecar car_polambo -980 -3015 -259 0
amx_makecar car_polambo -980 -2887 -259 0
these 3 cars are pointing to... I don't know, its North I think...
but if I change one of these, for example to:
"amx_makecar car_polambo -980 -3015 -259 90"
I know that the car will be at the same place, but turned 90 degrees...
(Sorry my english again, maybe its not clear for you guys understand)