KEY_SECONDARY_ATTACK and /enter
#6

Is there a way to use the same KEY_SECONDARY_ATTACK to exit?

I've tried this, but it does not work. I can enter. But not exit using the same key.

Quote:

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{


if( newkeys & KEY_SECONDARY_ATTACK ){
return OnPlayerCommandText(playerid, "/enter");

// return true;
}

if( newkeys & KEY_SECONDARY_ATTACK ){
return OnPlayerCommandText(playerid, "/exit");

// return true;
}

Reply


Messages In This Thread
KEY_SECONDARY_ATTACK and /enter - by mrxqware - 16.12.2013, 18:12
Re: KEY_SECONDARY_ATTACK and /enter - by dominik523 - 16.12.2013, 18:19
Re: KEY_SECONDARY_ATTACK and /enter - by Patrick - 16.12.2013, 18:37
Re: KEY_SECONDARY_ATTACK and /enter - by dominik523 - 16.12.2013, 18:48
Re: KEY_SECONDARY_ATTACK and /enter - by mrxqware - 17.12.2013, 10:16
Re: KEY_SECONDARY_ATTACK and /enter - by mrxqware - 17.12.2013, 18:57

Forum Jump:


Users browsing this thread: 1 Guest(s)