Spawning back at faction HQ - 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: Spawning back at faction HQ (
/showthread.php?tid=542099)
Spawning back at faction HQ -
alexanderjb918 - 16.10.2014
Hello guys so im intrested in making it so when a faction member logs out then in again spawns back at the LSPD HQ, Fac1
Re: Spawning back at faction HQ -
austin070 - 16.10.2014
pawn Код:
public OnPlayerSpawn(playerid)
{
if(PlayerInfo[playerid][Faction] == 1)
{
SetPlayerPos(playerid, x, y, z);
}
return 1;
}
Replace PlayerInfo[playerid][Faction] with whatever your script uses for player faction variables and repeat for each faction.