/heal help
#2

pawn Код:
new
    HealUsed[ MAX_PLAYERS ]
;


forward @RefreshCmd( playerid );

@RefreshCmd( playerid )
{
    HealUsed[ playerid ] = 0;
    SendClientMessage( playerid, -1, #two minutes passed you can now use heal command );
}

CMD:heal( playerid, params[] )
{  
    if ( HealUsed[ playerid ] == 1 ) return SendClientMessage( playerid, -1, #you cannot use this command, 2 minutes not passed );
    SetPlayerHealth( playerid, 100 );
    SetPlayerArmour( playerid, 100 );
    HealUsed[ playerid ] = 1;
    SetTimerEx( "RefreshCmd", 120000, false, "i", playerid );
   
    return ( 1 );
}
Reply


Messages In This Thread
/heal help - by boyan96 - 28.11.2011, 13:17
Re: /heal help - by SmiT - 28.11.2011, 13:22
Re: /heal help - by boyan96 - 28.11.2011, 13:24
Re: /heal help - by MP2 - 28.11.2011, 13:40
Re: /heal help - by tyler12 - 28.11.2011, 21:44
Re: /heal help - by MP2 - 28.11.2011, 23:27

Forum Jump:


Users browsing this thread: 1 Guest(s)