05.11.2013, 15:59
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!
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);
}
}