SA-MP Forums Archive
Streamer Destroy All Items - 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: Streamer Destroy All Items (/showthread.php?tid=662705)



Streamer Destroy All Items - NoteND - 08.01.2019

Hey!

I dont quite understand this function.. what is it meant for second parameter..

Streamer_DestroyAllItems(type, serverwide = 1)

Parameters:
type: The item type.
serverwide: 0 for the current script, 1 for all scripts.
Returns:
0 on failure, 1 on success.

Destroys all created items of the specified item type.

serverwide means to destroy all items that were made in includes aswell or what is it meant to be ?


Re: Streamer Destroy All Items - m4karow - 08.01.2019

i think if you want to destroy the items of a filterscript you have to set the param value to 0 otherwise 1 and the items from the gamemode, or other filterscripts will be destroyed