30.04.2010, 16:30
(
Последний раз редактировалось ViruZZzZ_ChiLLL; 25.02.2011 в 00:27.
)
if(Getplayerskin(playerid) == skinid) { spawn } else if(Getplayerskin(playerid) == skinid) { spawn }
Originally Posted by O_x
AddPlayerClass(skin, Float, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo)?
|
public OnPlayerSpawn(playerid)
{
if(GetPlayerSkin(playerid) == 29)
{
SetPlayerPos(playerid, 0.0, 0.0, 0.0);
}
return 1;
}
Originally Posted by Joe Torran C
Quote:
pawn Код:
|
Originally Posted by O_x
Quote:
|
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; }
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;
}