24.10.2013, 10:05
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
Or when the player dies, and you want another spawnpoint for the dead:
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;
}
pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid, Float:x, Float:y, Float:z);
return 1;
}