30.03.2010, 09:37
I verry need this in RolePlay. Very thanks who help me
new pickup;
public OnGameModeInit()
{
DisableInteriorEnterExits();
pickup = CreatePickup(1239, 23, 3000, 3000, 3000, 0);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == pickup)
{
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid, 3000, 3000, 3000);
}
return 1;
}
Originally Posted by povilaslt2
This is when you enter in pickup you enter in the iterior... I need when click 'Enter' entering you to interior
|
#define KEY_ENTER 16 #define PRESSED(%0) \ (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0))) public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if (PRESSED(KEY_ENTER)) { if(IsPlayerInRangeOfPoint(..)) { SetPlayerPos(..); SetPlayerInterior(...); } } return 1; }