Automatic door
#1

Hello!

im tired to type /open /close all the time, so i want it to go automatic
How do i convert this? here is the cmds

pawn Код:
COMMAND:open(playerid, params[])
{
    if(Member[playerid] == 0) return SendClientMessage(playerid,red,"You cant use our door");
    if(Member[playerid] == 1) return SendClientMessage(playerid,red,"You cant use our door");
    if(Member[playerid] == 2) return SendClientMessage(playerid,red,"You cant use our door");
    else if(Member[playerid] == 3)
    if(IsPlayerInRangeOfPoint(playerid, 2.0, -700.7123,437.2001,18.5800))
    MoveObject (open,-702.41857910156, 437.17742919922, 18.92423248291, 1.0);
    return 1;
}
COMMAND:close(playerid, params[])
{
    if(Member[playerid] == 0) return SendClientMessage(playerid,red,"You cant use our door");
    if(Member[playerid] == 1) return SendClientMessage(playerid,red,"You cant use our door");
    if(Member[playerid] == 2) return SendClientMessage(playerid,red,"You cant use our door");
    else if(Member[playerid] == 3)
    if(IsPlayerInRangeOfPoint(playerid, 2.0, -700.7123,437.2001,18.5800))
    MoveObject (open,-700.76788330078, 437.17742919922, 18.92423248291, 1.0);
    return 1;
}
Reply


Messages In This Thread
Automatic door - by cruising - 18.06.2011, 14:26
Re: Automatic door - by Kayaque - 18.06.2011, 17:29
Re: Automatic door - by cruising - 18.06.2011, 20:48
Re: Automatic door - by sleepysnowflake - 18.06.2011, 20:50
Re: Automatic door - by Retardedwolf - 18.06.2011, 20:53
Re: Automatic door - by cruising - 18.06.2011, 20:55
Re: Automatic door - by sleepysnowflake - 18.06.2011, 21:00
Re: Automatic door - by cruising - 18.06.2011, 21:05
Re: Automatic door - by sleepysnowflake - 18.06.2011, 21:09
Re: Automatic door - by cruising - 18.06.2011, 21:14

Forum Jump:


Users browsing this thread: 2 Guest(s)