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



objects cmd - [bs]_lancer - 31.07.2011

i want to script a cmd that when player use it he will see an object infront of him and when he use another cmd this object will gone ..

PS: can i use 1 cmd to show more than 1 object ?


Re: objects cmd - =WoR=Varth - 01.08.2011

pawn Код:
new bool:ObjectView[MAX_PLAYERS char];

//Inside your command
if(ObjectView{playerid} == false)
{
   //Show the object
   return 1;
}
else
{
    //Hide the object
    return 1;
}