When a player types /acceptdeath they see ground?
#7

Code:
if(strcmp(cmd, "/acceptdeath", true) == 0)
	{
	    if (IsDead[playerid] == 1)
	    {
	        SetTimerEx("ReloadPos",4000,false,"i",playerid);
	        new RandomWeth;
			RandomWeth = random(2);
	    	switch(RandomWeth)
	    	{
	            case 0:
	            {
	                SetPlayerVirtualWorld(playerid,1);
	       	    }
	            case 1:
	       	    {
	       	        SetPlayerVirtualWorld(playerid,2);
	            }
			}
			return 1;
		}
	}
and the reloadpos
Code:
forward ReloadPos(playerid);
public ReloadPos(playerid)
{
	new Float:X,Float:Y,Float:Z;
	GetPlayerPos(playerid, X, Y, Z);
   	DropWeapons(GetPlayerWeapon(playerid),GetPlayerAmmo(playerid),X,Y,Z,GetPlayerVirtualWorld(playerid),playerid);
    ResetPlayerWeaponsEx(playerid);
    SetPlayerToTeamColor(playerid);
    TogglePlayerControllable(playerid,false);
    SetPlayerHealthEx(playerid,1.0);
    SetPlayerPos(playerid, -3451.3801,475.9214,58.0620);
    SetPlayerInterior(playerid, 0);
    TogglePlayerControllable(playerid, 0);
    SetTimerEx("AfterSpawnHos", 10000, false, "i", playerid);
    ApplyAnimationEx(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
    GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~~n~~n~~n~You need to rest now, please wait",8000,3);
    SetTimerEx("AfterSpawnHos", 10000, false, "i", playerid);
    ApplyAnimationEx(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
    Hospitalized[playerid] = 1;
    return 1;
}
And on yours Jatoch I did like,

Code:
if(strcmp(cmd, "/acceptdeath", true) == 0)
	{
	    if (IsDead[playerid] == 1)
	    {
     		new Float:X,Float:Y,Float:Z;
                GetPlayerPos(playerid, X, Y, Z);
DropWeapons(GetPlayerWeapon(playerid),GetPlayerAmmo(playerid),X,Y,Z,GetPlayerVirtualWorld(playerid),pla    yerid);
	        ResetPlayerWeaponsEx(playerid);
    	        SetPlayerToTeamColor(playerid);
	        TogglePlayerControllable(playerid,false);
	        SetPlayerHealthEx(playerid,1.0);
	        SetPlayerPos(playerid, -3451.3801,475.9214,58.0620);
                SetPlayerInterior(playerid,0);
	        TogglePlayerControllable(playerid, 0);
	        new RandomWeth;
		RandomWeth = random(2);
	    	switch(RandomWeth)
	    	{
	            case 0:
	            {
	                SetPlayerVirtualWorld(playerid,1);
                        SetPlayerInterior(playerid,0);
	       	    }
	            case 1:
	       	    {
	       	        SetPlayerVirtualWorld(playerid,2);
                        SetPlayerInterior(playerid,0);
	            }
		}
	        GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~~n~~n~~n~You need to rest now, please wait",8000,3);
		    SetTimerEx("AfterSpawnHos", 10000, false, "i", playerid);
		    ApplyAnimationEx(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
		    Hospitalized[playerid] = 1;
		    return 1;
		}
	}
Reply


Messages In This Thread
When a player types /acceptdeath they see ground? - by Zack9764 - 13.02.2011, 17:09
Re: When a player types /acceptdeath they see ground? - by JaTochNietDan - 13.02.2011, 17:11
Re: When a player types /acceptdeath they see ground? - by SkizzoTrick - 13.02.2011, 17:14
[No subject] - by Zack9764 - 13.02.2011, 17:28
Re: When a player types /acceptdeath they see ground? - by JaTochNietDan - 13.02.2011, 17:36
Re: When a player types /acceptdeath they see ground? - by Calgon - 13.02.2011, 17:38
Re: When a player types /acceptdeath they see ground? - by Zack9764 - 13.02.2011, 17:42
Re: When a player types /acceptdeath they see ground? - by JaTochNietDan - 13.02.2011, 17:44
Calgon - by Zack9764 - 13.02.2011, 17:46
Re: When a player types /acceptdeath they see ground? - by JaTochNietDan - 13.02.2011, 17:50

Forum Jump:


Users browsing this thread: 1 Guest(s)