/enter and /exit using KEY_SECONDARY_ATTACK key
#1

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
/enter and /exit using KEY_SECONDARY_ATTACK key - by mrxqware - 17.12.2013, 21:17
Re: /enter and /exit using KEY_SECONDARY_ATTACK key - by Pottus - 17.12.2013, 21:23
Re: /enter and /exit using KEY_SECONDARY_ATTACK key - by mrxqware - 18.12.2013, 18:55

Forum Jump:


Users browsing this thread: 2 Guest(s)