DM Help respawning..
#2

Heres a better way....
Код:
new DMarea;
public OnPlayerSpawn(playerid)
{
    if (DMarea == 1)
	{
	new rand = random(sizeof(MDM));
        SetPlayerPos(playerid,MDM[rand][PlayerX],MDM[rand][PlayerY],MDM[rand][PlayerZ]);
	SetPlayerInterior(playerid,0);
	ResetPlayerWeapons(playerid);
        GivePlayerWeapon(playerid,38,9999);
        SetPlayerHealth(playerid, 100);
        SetPlayerArmour(playerid, 100); 
	}
also add this into your teleport command
Код:
DMarea == 1;
and you might also want to make a /leavedm or sumthin command
Код:
if (strcmp(cmdtext, "/leavedm", true)==0)
	{
	  DMarea = 0;
    	ResetPlayerWeapons(playerid);
		
		SpawnPlayer(playerid);
		return 1;
  }
hope it helped...

offtopic:
lol u are using Stunt Evolution GM arent you?
Reply


Messages In This Thread
DM Help respawning.. - by Kevin_Joshen - 20.08.2010, 22:04
Re: DM Help respawning.. - by [MNC]Azz - 20.08.2010, 22:51
Re: DM Help respawning.. - by Kevin_Joshen - 20.08.2010, 23:01
Re: DM Help respawning.. - by Kevin_Joshen - 21.08.2010, 01:52
Re: DM Help respawning.. - by Kevin_Joshen - 23.08.2010, 02:20
Re: DM Help respawning.. - by Kevin_Joshen - 23.08.2010, 06:07

Forum Jump:


Users browsing this thread: 1 Guest(s)