27.06.2013, 15:48
Hey guys ! On my server when i press Y Key in a vehicle the vehicle get flip and when player is onfoot the Help menu will apear.
My problem: In vehicle it's working but the help menu onfoot don't show
My problem: In vehicle it's working but the help menu onfoot don't show
pawn Код:
if ( newkeys & KEY_YES )
{
if ( IsPlayerInAnyVehicle( playerid ) )
{
new iSeat = GetPlayerVehicleSeat(playerid);
if( iSeat == 0 )
{
CallRemoteFunction( "OnPlayerCommandText", "is", playerid, "/flip" );
}
else InfoTD_MSG( playerid, 5000, "~w~~h~You are not the ~r~~h~Driver" );
}
else CallRemoteFunction( "OnPlayerCommandText", "is", playerid, "/help" );
}