08.05.2011, 21:30
how can i add a automatic gate when i press h and no when i write the command /opengate
Quote:
} else if ((PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16) && PlayerToPoint(15.0, playerid, 1518.4741,2773.7612,10.6719)) {//Cuneo gate MoveDynamicObject( cuneogate, 1524.13671875, 2773.29394531, 5.34656525,1); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s uses his remore to open the gate.!", sendername); ProxDetector(4.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE); GameTextForPlayer(playerid, "~g~Opened", 5000, 3); SetTimer("CuneoHQGateClose", 10000, false); |