Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define PRESSED(%0) \
- (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0))) //SEE LÄHEB ÜLES
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if (PRESSED(KEY_SECONDARY_ATTACK))
- {
- if(IsPlayerInRangeOfPoint(playerid, 1, 2303.0388,-16.2112,26.4844))//PANK SISSE
- {
- SetPlayerPos(playerid, 2306.1736,-16.0108,26.7496);
- SetPlayerInterior(playerid, 0);
- SetPlayerVirtualWorld(playerid, 13);
- }
- if(IsPlayerInRangeOfPoint(playerid, 1, 2306.1736,-16.0108,26.7496))//PANK VÄLJA
- {
- SetPlayerPos(playerid, 2303.0388,-16.2112,26.4844);
- SetPlayerInterior(playerid, 0);
- SetPlayerVirtualWorld(playerid, 0);
- }
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment