Quote:
Originally Posted by Dwane
pawn Code:
public OnPlayerCommandText( playerid, cmdtext[ ] ) { if( strcmp( cmdtext, "/getup", true, 6 ) == 0 ) { SetTimerEx( "GetUp", 90000, 0, "i", playerid ); return 1; } return 0; }
forward GetUp( playerid ); public GetUp( playerid ) { new Float:health;
GetPlayerHealth( playerid, health ); if( health <= 20 ) { SetPlayerHealth( playerid, 25 ); TogglePlayerControllable( playerid, 1 ); } return 1; }
|
Thats basiclly an exact copy of what I siad.