09.02.2012, 15:56
I don't recomment 3 to one command without params or anything.
pawn Код:
CMD:search( playerid, params[ ] )
{
if( hung_IsPlayerAthunger( playerid ) )
{
if( isfilling[ playerid ] ) return SendClientMessage( playerid, 0xFFC800FF, "You are already eating/searching!" );
if( hungers[ playerid ] > 80 ) return SCM( playerid, red, "You are not hungry!" );
TogglePlayerControllable( playerid, 0 );
isfilling[ playerid ] = 1;
timerfill[ playerid ] = SetTimerEx( "timer_fill", 5500, true, "i", playerid ); //setting refueltimer
if( !ammu_IsPlayerAtammu( playerid ) ) return SendClientMessage( playerid, red, "You are not at a ammunation!" );
timerammu[ playerid ] = SetTimerEx( "timer_ammu", 5000, true, "i", playerid ); //setting refueltimer
if( !base_IsPlayerAtme( playerid ) ) return SendClientMessage( playerid, red, "You are not at the base!" );
timerbase[ playerid ] = SetTimerEx( "timer_base", 5000, true, "i", playerid ); //setting refueltimer
}
return 1;
}

