21.01.2012, 18:00
pawn Код:
WHGATE = CreateDynamicObject(2990, 1141.0118408203, -1206.8706054688, 21.935035705566, 0, 0, 91.669952392578);
new bool:opened;
if(strcmp(cmd, "/whgate", true) == 0)
{
if(opened == false)
{
MoveDynamicObject(WHGATE,1141.0118408203, -1206.8706054688, 12.685035705566,1.2); //
SendClientMessage(playerid, COLOR_RED, "Gates are opening, Please Wait.");
opened = true;
}
if(opened == true)
{
MoveDynamicObject(WHGATE,1141.0118408203, -1206.8706054688, 21.935035705566,1.2); //
SendClientMessage(playerid, COLOR_RED, "The Gates are closing, Please Wait."); //
opened = false;
}
return 1;
}