Do a Auto gate when i prees h
#1

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);

Reply
#2

Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
        if(newkeys & KEY_CROUCH)
        {
               //your code
        }
        return 1;
}
Reply
#3

which code??
Reply
#4

never mine
its working tnx your pro!!!!!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)