Buttons/Keys Help
#1

Hello all,
I need help regarding this.They don't work..none of them.I want them to work like ENTER & EXIT for buildings..but they don't work.Help me please!
pawn Код:
if(newkeys == KEY_CROUCH){
    // ---------------- BANK --------------------------------------------//
    if(IsPlayerInRangeOfPoint(playerid, 5.0, -180.9258,1132.7721,19.7422)){
    SetPlayerPos(playerid, 319.6804,1852.7080,1613.3672);
    SetPlayerFacingAngle(playerid, 91.7607);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 5.0, 319.6804,1852.7080,1613.3672)){
    SetPlayerPos(playerid, -180.9258,1132.7721,19.7422);
    SetPlayerFacingAngle(playerid, 94.2908);
    }
    // ---------------- Police ------------------------------------------//
    if(IsPlayerInRangeOfPoint(playerid, 5.0, 95.0559,1178.1721,18.6641)){
    SetPlayerPos(playerid, 254.2448,1459.5632,-8.3811);
    SetPlayerFacingAngle(playerid, 181.3984);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 5.0, 254.2448,1459.5632,-8.3811)){
    SetPlayerPos(playerid, 95.0559,1178.1721,18.6641);
    SetPlayerFacingAngle(playerid, 20.6802);
    }
    // ------------------ DMV ------------------------------------------//
    if(IsPlayerInRangeOfPoint(playerid, 5.0, -144.9055,1079.3195,20.4922)){
    SetPlayerPos(playerid, 186.8596,1740.3788,4.7413);
    SetPlayerFacingAngle(playerid, 273.0641);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 5.0, 186.8596,1740.3788,4.7413)){
    SetPlayerPos(playerid, -144.9055,1079.3195,20.4922);
    SetPlayerFacingAngle(playerid, 4.5817);
    }
    // --------------- Hospital ------------------------------------------//
    if(IsPlayerInRangeOfPoint(playerid, 5.0, -318.5496,1050.1066,20.3403)){
    SetPlayerPos(playerid, 1245.8932,324.6824,-11.7422);
    SetPlayerFacingAngle(playerid, 156.4026);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1245.8932,324.6824,-11.7422)){
    SetPlayerPos(playerid, -318.5496,1050.1066,20.3403);
    SetPlayerFacingAngle(playerid, 6.9412);
    }
    }
Reply


Messages In This Thread
Buttons/Keys Help - by xxRichixx - 05.11.2013, 15:59
Re: Buttons/Keys Help - by Brandon_More - 05.11.2013, 17:22
Re: Buttons/Keys Help - by xxRichixx - 06.11.2013, 09:48
Re: Buttons/Keys Help - by Konstantinos - 06.11.2013, 09:53
Re: Buttons/Keys Help - by xxRichixx - 06.11.2013, 10:19
Re: Buttons/Keys Help - by xxRichixx - 06.11.2013, 13:13
Re: Buttons/Keys Help - by xxRichixx - 06.11.2013, 14:30
Re: Buttons/Keys Help - by Tagathron - 06.11.2013, 15:10
Re: Buttons/Keys Help - by xxRichixx - 07.11.2013, 12:41
Re: Buttons/Keys Help - by Pottus - 07.11.2013, 14:31

Forum Jump:


Users browsing this thread: 1 Guest(s)