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



Possible creating? - Crystallize - 22.12.2015

fixed.


Re: Possible creating? - Crystallize - 22.12.2015

Quote:
Originally Posted by patrickgtr
Посмотреть сообщение
It is possible to do so, you can use CreatePlayerObject and a player variable.
Like GetPlayerPos then create a new;float , then CreateObject however the problem is how to destroy it.
Thanks for the reply.


Re: Possible creating? - jlalt - 22.12.2015

PHP код:
new PlayerObject[howmuchisyourobjects][MAX_PLAYERS]; 
then later on your command:
PHP код:
PlayerObject[0][playerid] = Createdynamicobject
later
Код:
DestroyDynamicObject(PlayerObject[0][playerid]);



Re: Possible creating? - Crystallize - 22.12.2015

Quote:
Originally Posted by jlalt
Посмотреть сообщение
PHP код:
new PlayerObject[howmuchisyourobjects][MAX_PLAYERS]; 
then later on your command:
PHP код:
PlayerObject[0][playerid] = Createdynamicobject
later
Код:
DestroyDynamicObject(PlayerObject[0][playerid]);
will try , thank you!