09.07.2014, 18:18
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
i want it to open with /openbar /closebar
cmd(pbop, playerid, params[])
{
if(!IsCop(playerid))
{
return SendClientMessage(playerid, COLOR_RED, "You are not a Law Enforcement officer.");
}
if(PlayerToPoint(7.0,playerid,1544.6025,-1627.3309,13.3828))
{
MoveObject(edoor7,1544.69995, -1630.80005, 13.10000,0.50);
return 1;
}
else SendClientMessage(playerid, 0xAA3333AA, "[Error]: {FFFFFF} Must be next to The lspd Bar!!");
return 1;
}
cmd(pbcl, playerid, params[])
{
if(!IsCop(playerid))
{
return SendClientMessage(playerid, COLOR_RED, "You are not a Law Enforcement officer.");
}
if(PlayerToPoint(7.0,playerid,1544.6025,-1627.3309,13.3828))
{
MoveObject(edoor7,1544.69995, -1630.80005, 13.10000,0.50);
return 1;
}
else SendClientMessage(playerid, 0xAA3333AA, "[Error]: {FFFFFF} Must be next to The lspd Bar!!");
return 1;
}