need simple help with this script
#10

make your health 79 and try to use it

Edit:
On player get demage for 10 seconds will can't use this command and if died / 10 seconds left without demage will be able to use it
PHP код:

public OnPlayerTakeDamage(playeridissueridFloatamountweaponidbodypart)
{
    
SetPVarInt(playerid,"health22",1);
    
SetTimerEx"health21"10000false"i",playerid);
    return 
1;
}
public 
OnPlayerDeath(playeridkilleridreason)
{
SetPVarInt(playerid,"health22",0);
return 
1;
}
forward dialog3(playerid);
public 
dialog3(playerid)
{
if(
GetPVarInt(playerid"health22") == 1) {
SendClientMessage(playerid,-1,"[NGP]: you cannot use cmds while you in a fight or lossing health");
}else{
SetTimerEx"dialog3"15000false"i",playerid);
}
return 
1;
}
forward health21(playerid);
public 
health21(playerid)
{
SetPVarInt(playerid,"health22",0);
return 
1;

PS: if didn't work give me your command
Reply


Messages In This Thread
need simple help with this script - by LovelySoomro - 13.08.2015, 19:01
Re: need simple help with this script - by iTakelot - 13.08.2015, 19:09
Re: need simple help with this script - by LovelySoomro - 13.08.2015, 19:15
Re: need simple help with this script - by LovelySoomro - 13.08.2015, 19:24
Re: need simple help with this script - by jlalt - 13.08.2015, 19:32
Re: need simple help with this script - by LovelySoomro - 13.08.2015, 19:33
Re: need simple help with this script - by LovelySoomro - 13.08.2015, 19:37
Re: need simple help with this script - by jlalt - 13.08.2015, 19:40
Re: need simple help with this script - by LovelySoomro - 13.08.2015, 19:42
Re: need simple help with this script - by jlalt - 13.08.2015, 19:50

Forum Jump:


Users browsing this thread: 1 Guest(s)