gTeam Spawn Help. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: gTeam Spawn Help. (
/showthread.php?tid=124158)
gTeam Spawn Help. -
TheNotorius - 29.01.2010
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
Re: gTeam Spawn Help. -
bluray - 29.01.2010
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.
Re: gTeam Spawn Help. -
-Rebel Son- - 29.01.2010
Код:
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.
Re: gTeam Spawn Help. -
TheNotorius - 29.01.2010
Ahh Thanks i Worked it out :P
Thank you for your help
Re: gTeam Spawn Help. -
nastoe - 29.01.2010
you need to remove interior. it will work i try
Re: gTeam Spawn Help. -
TheNotorius - 29.01.2010
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 ^_^