25.07.2012, 05:18
Okay, So i have it where i type /exit or /enter to enter a place. How would i change it where i press F or ENTER to enter a place and not type it to exit and enter?
public OnPlayerStateChange(playerid, newkeys, oldkeys)
{
if((newkeys & KEY_SECONDARY_ATTACK) && !(oldkeys & KEY_SECONDARY_ATTACK))
{
//Whatever you would do for the /enter, check if they are in range, etcetra
}
return 1;
}