16.04.2013, 22:20
Hello!
Today I want to make a bind for the commands /enter and /exit.
BUUUUT I want to make it so if you are in an interior, it will do /exit and not enter.
Here are the commands:
I know how to bind things, but I want to make it so if you are not in an interior, /enter will bind to 'C' and if you are, /exit will bind to 'C'
Is this possible?
Today I want to make a bind for the commands /enter and /exit.
BUUUUT I want to make it so if you are in an interior, it will do /exit and not enter.
Here are the commands:
Код:
CMD:enter(playerid) { if(IsPlayerInRangeOfPoint(playerid, 5.0, -1911.7417,828.6296,35.1732)) // Burger Shot { SetPlayerInterior(playerid, 10); SetPlayerPos(playerid, 363.0568,-74.9951,1001.5078); } // Burger Shot if(IsPlayerInRangeOfPoint(playerid, 5.0, -2374.9663,909.7300,45.4453)) // Binco { SetPlayerInterior(playerid, 15); SetPlayerPos(playerid, 207.8533,-110.9560,1005.1328); } if(IsPlayerInRangeOfPoint(playerid, 5.0, -1605.5649, 711.5371, 13.8672)) // SFPD { SetPlayerInterior(playerid, 10); SetPlayerPos(playerid, 246.1845,110.3962, 1003.2257); } if(IsPlayerInRangeOfPoint(playerid, 5.0, -1989.0898,379.1354,36.2675)) // SFPD { SetPlayerInterior(playerid, 17); SetPlayerPos(playerid, -25.884498,-185.868988,1003.546875); } return 1; } CMD:exit(playerid) { if(IsPlayerInRangeOfPoint(playerid, 5.0, 363.0568,-74.9951,1001.5078)) { SetPlayerVirtualWorld(playerid, 0); SetPlayerPos(playerid, -1911.7417,828.6296,35.1732); SetPlayerInterior(playerid, 0); } if(IsPlayerInRangeOfPoint(playerid, 5.0, 207.8533,-110.9560,1005.1328)) { SetPlayerVirtualWorld(playerid, 0); SetPlayerPos(playerid, -2374.9663,909.7300,45.4453); SetPlayerInterior(playerid, 0); } if(IsPlayerInRangeOfPoint(playerid, 5.0, 246.1845,110.3962, 1003.2257)) { SetPlayerVirtualWorld(playerid, 0); SetPlayerPos(playerid, -1605.5649, 711.5371, 13.8672); SetPlayerInterior(playerid, 0); } if(IsPlayerInRangeOfPoint(playerid, 5.0, -25.884498,-185.868988,1003.546875)) // SFPD { SetPlayerInterior(playerid, 17); SetPlayerPos(playerid, -1989.0898,379.1354,36.2675); } return 1; }
Is this possible?