Hello again... Same topic. OnPlayerSpawn (Y_GROUPS/Y_Classes)
#1

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!
Reply
#2

STILL UP!
Reply
#3

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

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!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)