#1

Question:
How can I make a certain skin, spawn at a certain place??
________
Airstream
Reply
#2

Onplayerspawn

Код:
if(Getplayerskin(playerid) == skinid)
{
spawn
}
else if(Getplayerskin(playerid) == skinid)
{
spawn
}
and so on


edit: Or maybe he's right lol

(down arrow)
Reply
#3

AddPlayerClass(skin, Float, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo)?
Reply
#4

Quote:
Originally Posted by O_x
AddPlayerClass(skin, Float, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo)?
I think he'd know that :P

pawn Код:
public OnPlayerSpawn(playerid)
{
  if(GetPlayerSkin(playerid) == 29)
  {
     SetPlayerPos(playerid, 0.0, 0.0, 0.0);
  }
  return 1;
}
Reply
#5

Quote:
Originally Posted by Joe Torran C
Quote:
Originally Posted by O_x
AddPlayerClass(skin, Float, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo)?
I think he'd know that :P

pawn Код:
public OnPlayerSpawn(playerid)
{
  if(GetPlayerSkin(playerid) == 29)
  {
    SetPlayerPos(playerid, 0.0, 0.0, 0.0);
  }
  return 1;
}
dude isn't it actually the same result?
Reply
#6

Quote:
Originally Posted by O_x
Quote:
Originally Posted by Joe Torran C
Quote:
Originally Posted by O_x
AddPlayerClass(skin, Float, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo)?
I think he'd know that :P

pawn Код:
public OnPlayerSpawn(playerid)
{
  if(GetPlayerSkin(playerid) == 29)
  {
    SetPlayerPos(playerid, 0.0, 0.0, 0.0);
  }
  return 1;
}
dude isn't it actually the same result?
Yes but he would know AddPlayerClass so he obviously means that
Reply
#7

Actually I have this
Код:
for(new s = 0; s < 300; s++)
  {
	if(IsInvalidSkin(s)) continue;
	else AddPlayerClass(s, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  }
Код:
stock IsInvalidSkin(skinid) 
{
	#define	MAX_BAD_SKINS  14
	if(skinid > 310) return true; 
	new badSkins[MAX_BAD_SKINS] = {
		3, 4, 5, 6, 8, 42, 65, 74, 86,
		119, 149, 208, 273, 289
	};
	for (new i = 0; i < MAX_BAD_SKINS; i++) 
	{
	  if (skinid == badSkins[i]) return true; 
	}
	return false;
}
________
Los angeles dispensary
Reply
#8

use my suggestion then.
Reply
#9

Use this:

pawn Код:
if(GetPlayerSkin(playerid) == skin)
{
SetPlayerPos(playerid,X,Y,Z);
}
else
{
//if u wanna random spawn
new rand = random(3);
switch (rand)
{
case 0:SetPlayerPos(playerid,X,Y,Z);
case 1:SetPlayerPos(playerid,X,Y,Z);
case 2:SetPlayerPos(playerid,X,Y,Z);
}
return 1;
}
I hope it works
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)