IsKeyJustDown cmd
#1

Im trying to change this code to a command
Код:
if(IsKeyJustDown(KEY_CROUCH, newkeys, oldkeys) )
	{
	    if( Player[playerid][PrisonDuration] >= 1 )
	    {
	        SendClientMessage( playerid, WHITE, "This feature isn't available whilst you're prisoned / jailed." );
	    }
	    else
	    {
			if(IsPlayerInRangeOfPoint( playerid, 3, BankIntX, BankIntY, BankIntZ) )
			{
			    SetPlayerInterior( playerid, 0 );
			    TextDrawHideForPlayer( playerid, ExitTextdraw);
			    SetPlayerPos( playerid, BankExtX, BankExtY, BankExtZ);
			}
I got this but it doesnt work

Код:
command(enter, playerid, params[])  // <-- Changed that
	{
	    if( Player[playerid][PrisonDuration] >= 1 )
	    {
	        SendClientMessage( playerid, WHITE, "This feature isn't available whilst you're prisoned / jailed." );
	    }
	    else
	    {
			if(IsPlayerInRangeOfPoint( playerid, 3, BankIntX, BankIntY, BankIntZ) )
			{
			    SetPlayerInterior( playerid, 0 );
			    TextDrawHideForPlayer( playerid, ExitTextdraw);
			    SetPlayerPos( playerid, BankExtX, BankExtY, BankExtZ);
			}
the code is placed under
Код:
public OnPlayerKeyStateChange // <-- Should i place it somewhere else?
Reply


Messages In This Thread
IsKeyJustDown cmd - by FrankC - 28.09.2010, 09:42
Re: IsKeyJustDown cmd - by Retardedwolf - 28.09.2010, 09:47
Re: IsKeyJustDown cmd - by FrankC - 28.09.2010, 09:48
Re: IsKeyJustDown cmd - by Desert - 28.09.2010, 09:51
Re: IsKeyJustDown cmd - by FrankC - 28.09.2010, 10:10

Forum Jump:


Users browsing this thread: 1 Guest(s)