Starting new server :) PLEASE HELP - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Starting new server :) PLEASE HELP (
/showthread.php?tid=97905)
Starting new server :) PLEASE HELP -
Marc1100 - 17.09.2009
How do is use interiors? i know the ID's but i keep falling down from a great hight, can you help me?
Re: Starting new server :) PLEASE HELP -
Doppeyy - 17.09.2009
You mean with a teleport somewhere ?
We cant help you with to little info.
/Artix
Re: Starting new server :) PLEASE HELP -
» sTeVe - 17.09.2009
pawn Код:
SetPlayerInterior(playerid, InteriorID);
?
Re: Starting new server :) PLEASE HELP -
Marc1100 - 18.09.2009
When a player get killed, i want them to spawn back inside a safe house, for example CJ's house.
Re: Starting new server :) PLEASE HELP -
Correlli - 18.09.2009
Make sure you're setting the correct interiorid.
Re: Starting new server :) PLEASE HELP -
Memoryz - 18.09.2009
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid, playerid, reason);
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid,2496.65,-1696.55,1014.74);
return 1;
}
There, that sends you to CJs house.
Re: Starting new server :) PLEASE HELP -
» sTeVe - 18.09.2009
Quote:
Originally Posted by Memoryz
pawn Код:
public OnPlayerDeath(playerid, killerid, reason) { SendDeathMessage(killerid, playerid, reason); SetPlayerInterior(playerid, 3); SetPlayerPos(playerid,2496.65,-1696.55,1014.74); return 1; }
There, that sends you to CJs house.
|
This Code would set the Player into CJ's house, but he would die after he Spawn there.
Re: Starting new server :) PLEASE HELP -
Doppeyy - 18.09.2009
Quote:
Originally Posted by » sTeVe
Quote:
Originally Posted by Memoryz
pawn Код:
public OnPlayerDeath(playerid, killerid, reason) { SendDeathMessage(killerid, playerid, reason); SetPlayerInterior(playerid, 3); SetPlayerPos(playerid,2496.65,-1696.55,1014.74); return 1; }
Why would he die if he spawns again ?
/Artix
There, that sends you to CJs house.
|
This Code would set the Player into CJ's house, but he would die after he Spawn there.
|
Re: Starting new server :) PLEASE HELP -
Correlli - 18.09.2009
Quote:
Originally Posted by Memoryz
pawn Код:
public OnPlayerDeath(playerid, killerid, reason) { SendDeathMessage(killerid, playerid, reason); SetPlayerInterior(playerid, 3); SetPlayerPos(playerid,2496.65,-1696.55,1014.74); return 1; }
There, that sends you to CJs house.
|
That will put you to the CJ's house when you die, not when you spawn.