Raised This Month: $ Target: $400
 0% 

Hours trying, I had to ask for help..


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
TiToTal
Member
Join Date: Feb 2006
Old 03-05-2006 , 01:27  
Reply With Quote #3

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)
TiToTal is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:13.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode