SA-MP Forums Archive
Add an object to the server - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Add an object to the server (/showthread.php?tid=602536)



Add an object to the server - AlexLambert - 08.03.2016

Hi, i want to put this object (CreateObject(19321, 1594.292236, -1680.642944, 5.890625, 0.000000, 0.000000, 0.000000);//01) in my server but i dont know how can i add the code in the pawn.


Re: Add an object to the server - Golden96 - 08.03.2016

Put it under OnGameModeInit()

ie

public OnGameModeInit() {
CreateObject(19321, 1594.292236, -1680.642944, 5.890625, 0.000000, 0.000000, 0.000000);//01
return 1;
}


Re: Add an object to the server - AlexLambert - 08.03.2016

Quote:
Originally Posted by Golden96
Посмотреть сообщение
Put it under OnGameModeInit()

ie

public OnGameModeInit() {
CreateObject(19321, 1594.292236, -1680.642944, 5.890625, 0.000000, 0.000000, 0.000000);//01
return 1;
}
Yes thanks


Re: Add an object to the server - Chilli9434 - 08.03.2016

delete

already answered, nevermind.