SA-MP Forums Archive
Spawn objects for specific player - 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: Spawn objects for specific player (/showthread.php?tid=464135)



Spawn objects for specific player - Lidor124 - 15.09.2013

I made a trashman job and i want to create the black trashes object but only when the player is on job route (if he typed the command /loadtrash so objects spawn up), and when he reaches to last checkpoint all objects being destroyed.

Only the specific player will see the objects.

What function i should use and how to do it?

Thanks in advance!


Re: Spawn objects for specific player - cray1100 - 15.09.2013

Hmm... When he starts the job, CreateObject, When he loads the trash, DestroyObject(objectid)... Is this what you want?


Re: Spawn objects for specific player - Lidor124 - 15.09.2013

I said for specific player, createobject all players can see it.
More someone?


Re: Spawn objects for specific player - cray1100 - 15.09.2013

That has no point, just createobject, then delete it if they failed or completed...

But even so... CreatePlayerObject(playerid, objectid,...);