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



prob - John_Harper - 29.09.2012

Sorted!


Re: prob - John_Harper - 29.09.2012

Sorry object id is 1220


Re: prob - Gangster-rocks - 29.09.2012

pawn Код:
new box; //on top of your gm under includes
if (!strcmp("/createbox", cmdtext, true, 10))
{
   new Float:x,Float:y,Float:z;
   GetPlayerPos(playerid,x,y,z);
   box = CreateObject(1220,x,y,z,0,0,0);
    return 1;
}
if (!strcmp("/removebox", cmdtext, true, 10))
{
   DestroyObject(box);
    return 1;
}