help.
#10

Quote:
Originally Posted by kepa333
Посмотреть сообщение
i did this

PHP код:
    if(!strcmp(cmdtext"/shayopen"true)) // By dylan
    
{
        if(
IsPlayerConnected(playerid))
        {
            if(
IsPlayerInRangeOfPoint(playerid15311.20001220703, -1141.900024414186.199996948242) || IsPlayerInRangeOfPoint(playerid6,311.8377,-1142.1458,5028.0552))
            {
                  new
                    
nameMAX_PLAYER_NAME ]
                ;
                
GetPlayerNameplayeridnameMAX_PLAYER_NAME );
                if( !
strcmpname"kepa333"true ) ) SendClientMessageplayerid, -1"Hello keppa!" );
                else 
SendClientMessageplayerid, -1"You're not kepa." );
                if(
shay1 == 0)
                {
                      
MoveDynamicObject(shaygate1,  311.89999389648, -1142.80004882815026.550.7500);
                      
SendClientMessage(playeridCOLOR_BLUE,"Gate is open");
                      
GetPlayerName(playeridsendernamesizeof(sendername));
                      
format(stringsizeof(string), "* %s takes his/her remote control and opens Gate."sendername);
                      
ProxDetector(30.0playeridstringCOLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                      
shay1 1;
                }
                else
                {
                      
MoveDynamicObject(shaygate1,  311.20001220703, -1141.900024414150.19999694824250.0000);
                      
SendClientMessage(playeridCOLOR_BLUE,"Gate is closed");
                      
GetPlayerName(playeridsendernamesizeof(sendername));
                      
format(stringsizeof(string), "* %s takes his/her remote control and closes Gate."sendername);
                      
ProxDetector(30.0playeridstringCOLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                      
shay1 0;
                }
            }
        }
        return 
1;
    } 
it does show that im not the right guy but it still opens...
help me out of here pls
solved
Reply


Messages In This Thread
help. - by kepa333 - 15.03.2013, 12:55
Re: help. - by Bikken - 15.03.2013, 12:59
Re: help. - by kepa333 - 15.03.2013, 13:10
Re: help. - by P3DRO - 15.03.2013, 13:18
Re: help. - by kepa333 - 15.03.2013, 13:21
Re: help. - by Threshold - 15.03.2013, 13:22
Re: help. - by DiGiTaL_AnGeL - 15.03.2013, 13:23
Re: help. - by Konstantinos - 15.03.2013, 13:26
Re: help. - by kepa333 - 15.03.2013, 14:48
Re: help. - by kepa333 - 15.03.2013, 15:13

Forum Jump:


Users browsing this thread: 1 Guest(s)