SA-MP Forums Archive
question. - 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: question. (/showthread.php?tid=312493)



question. - viddo - 21.01.2012

How do i add a mapped object in the game mode? like
Код:
CreateObject
2nd: how do i make a /opendoor or something for a specific gate ?

Edit: i managed to make the mapped object in my gamemode but for some reason when i add it it removes any other gate or door that i added why?


Re: question. - Aprezt - 21.01.2012

Make object.
pawn Код:
CreateObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float:DrawDistance)
MoveObject
pawn Код:
MoveObject(objectid, Float:X, Float:Y, Float:Z, Float:Speed)



Re: question. - viddo - 21.01.2012

Quote:
Originally Posted by Aprezt
Посмотреть сообщение
pawn Код:
CreateObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float:DrawDistance)
I know but where do i put it ? i mean after what ?


Re: question. - pop.nicku - 21.01.2012

CreateObject in "OnGameModeInit()" function.
MoveObject where your "/opendoor" command is (usualy OnPlayerCommandText if you don't use dcmd,zcmd or something like that).