SA-MP Forums Archive
Spawn - 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)
+--- Thread: Spawn (/showthread.php?tid=592107)



Spawn - rambalili2 - 20.10.2015

Код:
CMD:spawn1(playerid, params[])
{
	new Float:health;
	GetPlayerHealth(playerid,health);
	SendClientMessage(playerid, COLOR_LIGHTPINK, "You'll now spawn at base!");
	if (health == 0)
    {
		SetPlayerPos(playerid, 254.5229,-1367.1545,53.1094);
    }
    return 1;
}
I made this command for spawning at my base after death but when i use /kill its spawns me at the location i made for the class can anyone tell me how to make it that if i die or use /kill it will spawn me at my base?


Re: Spawn - iShawn - 20.10.2015

Search SetSpawnInfo function.


Re: Spawn - rambalili2 - 20.10.2015

fixed lock please