11.02.2012, 10:14
Well after that i made this of it but it still doesnt work
It gives no errors or warnings but when i use it it says : Unknown command
pawn Код:
CMD:searchtest( 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 ) )
{
timerammu[ playerid ] = SetTimerEx( "timer_ammu", 5000, true, "i", playerid ); //setting refueltimer
}
if( !base_IsPlayerAtme( playerid ) )
{
timerbase[ playerid ] = SetTimerEx( "timer_base", 5000, true, "i", playerid ); //setting refueltimer
}
return 1;
}

