05.04.2011, 23:51
on up gamemode
pawn Code:
forward GateClose(playerid);
pawn Code:
public GateClose(playerid)
{
MoveDynamicObject(psur,-982.02215576,490.67080688,3.803113890, 3);
psur = 0;
return 1;
}
pawn Code:
psur = CreateObject(971,-982.02215576,490.67080688,3.03113890,0.00000000,0.00000000,46.00000000); //puerta sur
CMD:ps(playerid,params[]) {
if(PlayerInfo[playerid][Level] >= 4 || IsPlayerAdmin(playerid)) {
MoveObject(psur, -982.02215576,490.67080688,-1.803113890, 3);
SetTimer("GateClose", 10000, 0);
SendClientMessage(playerid, 0xFFFF00AA,"The Gate is opened.Gate Automatically Closed In 10 Seconds");
return 1;
} else return SendClientMessage(playerid,COLOR_RED,"ERROR: You are not a high enough level to use this command");
}