Press a key inside a vehicle?
#1

Why won't this work? it should work..
pawn Код:
if( IsKeyJustDown( KEY_CROUCH, newkeys, oldkeys ) && IsPlayerInAnyVehicle( playerid ) )
{
    SendClientMessage( playerid, WHITE, "TEST" );
}
The only thing i could think of would be that you can't use that key or something in a vehicle if thats the case
what keys can i use?
Reply
#2

PHP код:
new k1,k2,k3;
GetPlayerKeys(playerid,k1,k2,k3);
if((
k1 == 2) && IsPlayerInAnyVehicle(playerid))
{
    
SendClientMessageplayeridWHITE"TEST" );
}
// .... 
Reply
#3

Quote:
Originally Posted by Shadoww5
Посмотреть сообщение
PHP код:
new k1,k2,k3;
GetPlayerKeys(playerid,k1,k2,k3);
if((
k1 == 2) && IsPlayerInAnyVehicle(playerid))
{
    
SendClientMessageplayeridWHITE"TEST" );
}
// .... 
So i should use the Value of the key. Hmm okay thanks.
Reply
#4

No no, this can be 2 or KEY_CROUCH.

There is no difference.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)