Map code?
#1

Hi!


I'm a biggener with Pawn scrpiting (I have learn pretty much)
But still much to learn. But now I wounder where I should
put my map code?? (Sorry for stupid question but i'm begginer like said before.

Thanks for help.
Reply
#2

You can put your map lines in public OnGameModeInit()

Example:
Код:
public OnGameModeInit()
{

// Rest of your code. ^^


CreateObject(16093,1848.15234375,-2431.40039062,16.83553314,0.00000000,0.00000000,0.00000000); //object(a51_gatecontrol)(1)
CreateObject(16638,1848.19531250,-2432.37011719,15.00000000,0.00000000,0.00000000,0.00000000); //object(a51_gatecon_a)(2)
CreateObject(8171,1923.88476562,-2408.94824219,12.60000038,0.00000000,0.00000000,0.00000000); //object(vgssairportland06)(2)
CreateObject(8171,1923.95996094,-2293.73632812,12.63911629,0.00000000,0.00000000,0.00000000); //object(vgssairportland06)(3)
CreateObject(1215,352.42486572,2522.91503906,21.39999962,90.00000000,0.00000000,0.00000000); //object(bollardlight)(55)
CreateObject(10817,-749.16699219,2004.48730469,-12.00000000,0.00000000,0.00000000,251.99890137); //object(airprtgnd_03_sfse)(1)
CreateObject(10766,-726.49609375,1804.04296875,-0.25000000,0.00000000,0.00000000,161.99890137); //object(airport_10_sfse)(2)
CreateObject(9237,-778.28381348,1828.04467773,9.54636765,0.00000000,0.00000000,0.00000000); //object(lighhouse_sfn)(1)
CreateObject(13607,-801.76660156,1853.06738281,5.20000000,0.00000000,0.00000000,0.00000000); //object(ringwalls)(1)
CreateObject(9076,-659.93457031,2015.93164062,8.00000000,0.00000000,0.00000000,74.99816895); //object(sphinx01_lvs)(1)
CreateObject(11454,405.52862549,2588.29541016,15.46317673,0.00000000,0.00000000,183.99987793); //object(des_nwmedcen)(1)

return 1;
}
Reply
#3

Thanks so much!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)