[HELP] making /accept death CMD. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] making /accept death CMD. (
/showthread.php?tid=109982)
SOLVED! -
Nakash - 23.11.2009
Thank you.
Re: [HELP] making /accept death CMD. -
Pawno_Master - 23.11.2009
Код:
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");
}
}
Re: Thank you. -
Nakash - 23.11.2009
Thanks....
Re: [HELP] making /accept death CMD. -
Pawno_Master - 23.11.2009
No problem if you have any problems you can Pm me
Re: [HELP] making /accept death CMD. -
GTA967 - 23.11.2009
early warning - it would not get all deaths.
Re: [HELP] making /accept death CMD. -
Nakash - 23.11.2009
Quote:
Originally Posted by GTA967
early warning - it would not get all deaths.
|
Okay....
Re: [HELP] making /accept death CMD. -
Nakash - 25.11.2009
Quote:
Originally Posted by Nakash
Quote:
Originally Posted by GTA967
early warning - it would not get all deaths.
|
What do you mean? can you fix the code please?
|
BUMP [12 hours has been moved]
Re: [HELP] making /accept death CMD. -
Mikep. - 25.11.2009
People don't wait a second before shots, do they..?
Best thing to do would be to have a custom spawning system using SetPlayerPos. When they die, do that /accept message, so when they type it they spawn.
Re: [HELP] making /accept death CMD. -
SkizzoTrick - 13.11.2010
I need to modify it a bit,but thanks alot xD
Re: [HELP] making /accept death CMD. -
Kidemo - 13.11.2010
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