[HELP] making /accept death CMD.
#10

pawn Код:
forward health(playerid);
public health(playerid)
{
if(GetPlayerHealth(playerid,health) <= 1)
{
new Float:health;
SetPlayerHealth(playerid,1.00);
TogglePlayerControllable(playerid,false);
GameTextForPlayer(playerid,"Type /accept to accept your Death");
}
}

public OnPlayerConnect(playerid,blablabla)
{
SetTimerEx("health",1000,true,"i",playerid);
}

pubic onplayercommandtext(playerid, blablabla)
{
if(strcmp("/accept",cmdtext,true) == 0)
{
SetPlayerHealth(playerid,0);
SendClientMessage(playerid,0xAA3333AA,"You died because you accepted your death");
SetPlayerPos(YOUR CO _ ORDS);
}
}
return 1;
Thats much better just place your co - ordanates
Reply


Messages In This Thread
SOLVED! - by Nakash - 23.11.2009, 18:36
Re: [HELP] making /accept death CMD. - by Pawno_Master - 23.11.2009, 19:14
Re: Thank you. - by Nakash - 23.11.2009, 19:20
Re: [HELP] making /accept death CMD. - by Pawno_Master - 23.11.2009, 19:21
Re: [HELP] making /accept death CMD. - by GTA967 - 23.11.2009, 19:24
Re: [HELP] making /accept death CMD. - by Nakash - 23.11.2009, 19:39
Re: [HELP] making /accept death CMD. - by Nakash - 25.11.2009, 20:36
Re: [HELP] making /accept death CMD. - by Mikep. - 25.11.2009, 20:41
Re: [HELP] making /accept death CMD. - by SkizzoTrick - 13.11.2010, 07:03
Re: [HELP] making /accept death CMD. - by Kidemo - 13.11.2010, 07:14

Forum Jump:


Users browsing this thread: 1 Guest(s)