gTeam Spawn Help.
#1

hey guys, i has a problem D:
I set my coords for my two teams, to spawn at a specific location,
GROVE Spawns Where I Set It To, Ballas Spawns at The Default Samp SpawnPoint :S

can you please help me?

heres Code:

pawn Код:
#define TEAM_GROVE 1
#define TEAM_BALLAS 2

public OnPlayerSpawn(playerid)
{
  switch(gClass[playerid])
  {
    case 1:
    {
      SetPlayerColor(playerid, COLOR_GREEN);
      SetPlayerPos(playerid,2461.9104,-1688.7056,-7.4906);
    }
    case 2:
    {
      SetPlayerColor(playerid, COLOR_PURPLE);
      SetPlayerInterior(playerid,5);
      SetPlayerPos(playerid,330.8326,1127.7487,1083.8828);
    }
   }
  return 1;
}
thanks For any Help

And heres ip To Server to see

124.191.146.100:7777


Reply
#2

do any come up at all, firstly try case 0 and case 1. not case 1 and case 2. Remember pawno starts with 0.
to make it easier on add player class, just put the co ords there. but for the interior, idk.
Reply
#3

Код:
public OnPlayerSpawn(playerid)
{
  switch(gClass[playerid])
  {
    case 0:
    {
      SetPlayerColor(playerid, COLOR_GREEN);
      SetPlayerPos(playerid, 2461.9104,-1688.7056,-7.4906);
    }
    case 1:
    {
      SetPlayerColor(playerid, COLOR_PURPLE);
      SetPlayerPos(playerid, 330.8326,1127.7487,1083.8828);
    }
   }
  return 1;
Give this code a go.
Reply
#4

Ahh Thanks i Worked it out :P
Thank you for your help
Reply
#5

you need to remove interior. it will work i try
Reply
#6

Quote:
Originally Posted by ExtremePower
you need to remove interior. it will work i try
lol i just switched the class around now my ballas spawn in interior like i wanted them to and grove spawns outside like i wanted them to 8D lol ^_^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)