SA-MP Forums Archive
lspd open gate is not working - 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: lspd open gate is not working (/showthread.php?tid=525011)



lspd open gate is not working - UserName31 - 09.07.2014

hey i am trying to make this open can someone help me with this i tryed but wont move the object



i want it to open with /openbar /closebar


Re: lspd open gate is not working - HyDrAtIc - 09.07.2014

Show us the LSPD's gate code please first.


Re: lspd open gate is not working - UserName31 - 09.07.2014

Quote:
Originally Posted by HyDrAtIc
Посмотреть сообщение
Show us the LSPD's gate code please first.
oh yes my apologies

cmd
PHP код:
cmd(pbopplayeridparams[])
{
        if(!
IsCop(playerid))
        {
            return 
SendClientMessage(playeridCOLOR_RED"You are not a Law Enforcement officer.");
        }
        if(
PlayerToPoint(7.0,playerid,1544.6025,-1627.3309,13.3828))
        {
            
MoveObject(edoor7,1544.69995, -1630.8000513.10000,0.50);
            return 
1;
        }
        else 
SendClientMessage(playerid0xAA3333AA"[Error]: {FFFFFF} Must be next to The lspd Bar!!");
           return 
1;
    }
cmd(pbclplayeridparams[])
{
        if(!
IsCop(playerid))
        {
            return 
SendClientMessage(playeridCOLOR_RED"You are not a Law Enforcement officer.");
        }
        if(
PlayerToPoint(7.0,playerid,1544.6025,-1627.3309,13.3828))
        {
            
MoveObject(edoor7,1544.69995, -1630.8000513.10000,0.50);
            return 
1;
        }
        else 
SendClientMessage(playerid0xAA3333AA"[Error]: {FFFFFF} Must be next to The lspd Bar!!");
           return 
1;
    } 
i defined already