08.08.2010, 08:27
how to use the classid on player spawn? i mean i hve some classes on a certain team but i want 8 classes from this team spawn at a cartain spawn point. pls help.
if(GetPlayerTeam(playerid)== YOUR_TEAM_IDS) //swap for your team id
{
SetPlayerPos(playerid,x,y,z); //spawnpoint co-ords
}
]if(GetPlayerTeam(playerid)== YOUR_TEAM_IDS)//swap for another team id
{
SetPlayerPos(playerid,x,y,z); //more spawnpoint co-ords
}
thanks for help but the first gave me an idea. how to use the if(GetPlayerSkin(playerid) == 25) example like if(!GetPlayerSkin(playerid) == 25)?
|
if(!GetPlayerSkin(playerid)) {
}
if(GetPlayerSkin(playerid) == 25)//check for 1 skin id
{
SetPlayerPos(playerid,x,y,z);//would work
}
if(GetPlayerSkin(playerid) == 25 || 26 || 27)//check for several skin ids
{
SetPlayerPos(playerid,x,y,z);//would work too but for 3 skins
}
if(!GetPlayerSkin(playerid) == 25)//check if a player isnt id 25
{
SetPlayerPos(playerid,x,y,z);//would work
}
if(!GetPlayerSkin(playerid) == 25 || 26 || 27)//check if player isn't 25,26,27
{
SetPlayerPos(playerid,x,y,z);//would work too but for 3 skins
}
pawn Код:
|
warning 213: tag mismatch
if(GetPlayerSkin(playerid) != 25)//check if a player isnt id 25
{
SetPlayerPos(playerid,x,y,z);//would work
}
if(GetPlayerSkin(playerid) != 25 || 26 || 27)//check if player isn't 25,26,27
{
SetPlayerPos(playerid,x,y,z);//would work too but for 3 skins
}