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



Problem - Akcent_Voltaj - 03.11.2012

i made a cmd /hgate but i want only the owner of the house to open and close it and the renters..

PHP код:
if(strcmp(cmd"/hgate"true) == 0)
                    {
                    if(
PlayerToPoint(10playerid,1269.3140,-912.9897,41.8798))
                    {
                        
MoveDynamicObject(house1598.268677, -1638.33117713.7525523.0);
                        
SetTimer("house",5000false);
                        return 
1;
                    }
                    }