18.06.2011, 14:26
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
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;
}