Starting new server :) PLEASE HELP
#1

How do is use interiors? i know the ID's but i keep falling down from a great hight, can you help me?
Reply
#2

You mean with a teleport somewhere ?
We cant help you with to little info.

/Artix
Reply
#3

pawn Код:
SetPlayerInterior(playerid, InteriorID);
?
Reply
#4

When a player get killed, i want them to spawn back inside a safe house, for example CJ's house.
Reply
#5

Make sure you're setting the correct interiorid.
Reply
#6

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.
Reply
#7

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.
Reply
#8

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.
Reply
#9

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)