dm1 spawn!help
#1

Hi!
i download a fs for dm zone
it has 1dm zone /dm1
it works but i want every body that join dm and die, respawn in dm1!
Код:
#include <a_samp>
#include <streamer>
#include <sscanf>
#include <core>
#include <float>

#define COLOR_RED 0xAA3333AA
#define COLOR_BLUE	0x33CCFFAA
#define COLOR_ERROR 0xFF6A6AFF
#define COLOR_BOMB 0x96BD6AFF

public OnPlayerSpawn(playerid)
{
  	TogglePlayerControllable(playerid,1);
  	SetPlayerArmour(playerid, 100);
  	SetPlayerHealth(playerid, 100);
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{

	if (strcmp(cmdtext, "/dm1", true) == 0)
	{
		SetPlayerPos(playerid, -1314.0879,2541.4563,87.7422);
		GivePlayerMoney(playerid, -15000);
		SendClientMessage(playerid, COLOR_RED, ".: Your Join DM 1 :.");
	  	PlayerPlaySound(playerid ,3200,0,0,0);
		SetPlayerHealth(playerid, 100);
		SetPlayerArmour(playerid, 100);
		SetPlayerSkin(playerid, 293);
		GivePlayerWeapon(playerid, 24, 18000);
		GivePlayerWeapon(playerid, 25, 18000);
		GivePlayerWeapon(playerid, 16, 18000);
		GivePlayerWeapon(playerid, 28, 18000);
		GivePlayerWeapon(playerid, 31, 18000);
        return 1;
	}
	return 0;
}
Reply


Messages In This Thread
dm1 spawn!help - by Airblog - 02.10.2014, 13:50
Re: dm1 spawn!help - by PabloAguado - 02.10.2014, 13:53
Re: dm1 spawn!help - by Airblog - 02.10.2014, 14:24
Re: dm1 spawn!help - by YanLanger - 02.10.2014, 14:34
Re: dm1 spawn!help - by Airblog - 02.10.2014, 14:35
Re: dm1 spawn!help - by SWGamer - 02.10.2014, 14:44
Re: dm1 spawn!help - by Airblog - 02.10.2014, 14:47
Re: dm1 spawn!help - by MrCallum - 02.10.2014, 14:49
Re: dm1 spawn!help - by SWGamer - 02.10.2014, 14:55
Re: dm1 spawn!help - by Airblog - 02.10.2014, 15:09

Forum Jump:


Users browsing this thread: 1 Guest(s)