SA-MP Forums Archive
Need help with CreateObject and CreateExplsion - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need help with CreateObject and CreateExplsion (/showthread.php?tid=131398)



Need help with CreateObject and CreateExplsion - too803 - 02.03.2010

I want the two of them to create an object when a command is typed ex./smokeadd and then I want the same for the explsion one.Any Ideas how



Re: Need help with CreateObject and CreateExplsion - too803 - 03.03.2010

Any help?


Re: Need help with CreateObject and CreateExplsion - Naxix - 03.03.2010

For the smoke, i think there is an item that smokes, i guess you cut just make a command to "CreateObject" and a command to remove the Objects again, tho i'm not sure..

Код:
 	if (strcmp("/createo", cmdtext, true, 10) == 0)
 	{
 		if(IsPlayerAdmin(playerid))
 		{
			CreateObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ);
 	  	}
 	  else
 	  {
		return 0;
		}
	}
something like this i guess.. Not sure tho


Re: Need help with CreateObject and CreateExplsion - too803 - 04.03.2010

I tried that,you have to add coords but I want it to spawn infront of the player