05.04.2011, 22:54
not tested
or
pawn Code:
psur = CreateDynamicObject(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)) {
MoveDynamicObject(psur, -982.02215576,490.67080688,-1.803113890, 3);
SendClientMessage(playerid, 0xFFFF00AA,"The Gate is opened.Welcome!");
return 1;
} else return SendClientMessage(playerid,COLOR_RED,"ERROR: You are not a high enough level to use this command");
}
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);
SendClientMessage(playerid, 0xFFFF00AA,"The Gate is opened.Welcome!");
return 1;
} else return SendClientMessage(playerid,COLOR_RED,"ERROR: You are not a high enough level to use this command");
}