31.05.2012, 12:54
pawn Код:
CreateObject(2990,2479.87768555,-1720.38623047,16.46136665,0.00000000,0.00000000,179.99993896); //object(wongs_gate) (1)
pawn Код:
if (strcmp("/open", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0xFFCFFF, " You've opened the gate please close it ");
MoveObject(2990,2479.87768555,-1720.38623047,16.46136665,0.00000000,0.00000000,179.99993896,1);
SetTimer("close", 10000, 0);//the gate will close after 10 seconds
return 1;
}
if (strcmp("/close", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0xFFCFFF, " You've closed the gate thanks for closing it ");
MoveObject(2990,2479.87768555,-1720.38623047,16.46136665,0.00000000,0.00000000,179.99993896,0);