#1

How do i change spawn?
i mean how do i change the spawn for players when joins?
Reply
#2

This?

https://sampwiki.blast.hk/wiki/AddPlayerClass
Reply
#3

pawn Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerPos(playerid,x,y,z); //change , x ,y ,z to your postions you want
    return 1;
}
Reply
#4

If you mean you want different spawn points when the player joins, so that 2 players don't spawn at the same playce, you can use

pawn Код:
public OnPlayerConnect(playerid
{
          AddPlayerClass(skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);
          AddPlayerClass(skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);
          AddPlayerClass(skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);
return 1;
}
Or when the player dies, and you want another spawnpoint for the dead:
pawn Код:
public OnPlayerSpawn(playerid)
{
       SetPlayerPos(playerid, Float:x, Float:y, Float:z);
       return 1;
}
Reply
#5

Quote:
Originally Posted by SilentSoul
Посмотреть сообщение
pawn Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerPos(playerid,x,y,z); //change , x ,y ,z to your postions you want
    return 1;
}
thank you
Reply
#6

This one might help u: https://sampwiki.blast.hk/wiki/AddPlayerClass
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)