SA-MP Forums Archive
Hello again... Same topic. OnPlayerSpawn (Y_GROUPS/Y_Classes) - 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)
+--- Thread: Hello again... Same topic. OnPlayerSpawn (Y_GROUPS/Y_Classes) (/showthread.php?tid=409548)



Hello again... Same topic. OnPlayerSpawn (Y_GROUPS/Y_Classes) - Scrillex - 21.01.2013

So The thing is... I have multiple groups but how to spawn them in multiple spawns.
Like Grove street to CJ hose
Ballas to Glen park...
(I have all cordinates interiors etc.. but it spawns in same localation CJ house)
So here is the script--->

PHP код:
public OnPlayerSpawn(playerid)
{
    if(
g_pClassID[playerid] == || g_pClassID[playerid] == || g_pClassID[playerid] == || g_pClassID[playerid] == 3)
    {
        
Group_SetPlayer(gCripsplayeridtrue);
        
SetPlayerInterior(playerid3);
        
SetPlayerPos(playerid,2496.3914,-1709.5240,1014.7422);
    }
    else if(
g_pClassID[playerid] == 20 || g_pClassID[playerid] == 21 || g_pClassID[playerid] == 22 || g_pClassID[playerid] == 23)
    {
        
Group_SetPlayer(gIdlewoodplayeridtrue);
        
SetPlayerInterior(playerid5);
        
SetPlayerPos(playerid,319.8876,1124.1194,1084.3733);
    } 
Everything is working on public OnPlayerRequestClass(playerid, classid)

Now I cant get spawn points. Maybe someone can help me out!


Re: Hello again... Same topic. OnPlayerSpawn (Y_GROUPS/Y_Classes) - Scrillex - 22.01.2013

STILL UP!


Re: Hello again... Same topic. OnPlayerSpawn (Y_GROUPS/Y_Classes) - McBan - 22.01.2013

Change the co ords at the line: setplayerpos for each case.


Re: Hello again... Same topic. OnPlayerSpawn (Y_GROUPS/Y_Classes) - Scrillex - 22.01.2013

I want it diffrent not just changing the cords.. I want it on player spawn because I want to know how it's working.. But still thank you for your advice!