How to create keypad on this code
#9

PHP код:
if(newkeys YOUR KEY && IsPlayerInRangeOfPoint(playerid2,250.611,63.2995,1003.18))
    {
           if(
gTeam[playerid] != YOUR TEAM)
        {
            
SendClientMessage(playerid,COLOR_ERROR,"Acces denied");
            return 
1;
        }
                if(
lspd1 == 0)
                {
                      
MoveDynamicObject(lspddoor1250.611,63.2995,1000.644.5000);
                      
SendClientMessage(playeridCOLOR_BLUE,"SAPD door is open, please close it!");
                      
GetPlayerName(playeridsendernamesizeof(sendername));
                      
format(stringsizeof(string), "* %s takes his/her remote control and opens the door."sendername);
                      
ProxDetector(30.0playeridstringCOLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                      
lspd1 1;
                }
                else
                {
                      
MoveDynamicObject(lspddoor1250.611,63.2995,1003.044.5000);
                      
SendClientMessage(playeridCOLOR_BLUE,"SAPD door is closed, thank you!");
                      
GetPlayerName(playeridsendernamesizeof(sendername));
                      
format(stringsizeof(string), "* %s takes his/her remote control and closes the door."sendername);
                      
ProxDetector(30.0playeridstringCOLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                      
lspd1 0;
                } 
EDIT: It should be placed under OnPlayerKeyStateChange.
Reply


Messages In This Thread
How to create keypad on this code - by ognyanov - 29.07.2015, 17:18
Re: How to create keypad on this code - by Variable™ - 29.07.2015, 17:21
Re: How to create keypad on this code - by ognyanov - 29.07.2015, 17:57
Re: How to create keypad on this code - by Variable™ - 29.07.2015, 17:58
Re: How to create keypad on this code - by ognyanov - 29.07.2015, 21:29
AW: How to create keypad on this code - by Mencent - 29.07.2015, 21:29
Re: How to create keypad on this code - by ognyanov - 29.07.2015, 22:07
Re: How to create keypad on this code - by ognyanov - 29.07.2015, 23:34
Re : How to create keypad on this code - by KillerDVX - 29.07.2015, 23:52

Forum Jump:


Users browsing this thread: 1 Guest(s)