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


Messages In This Thread
Hello again... Same topic. OnPlayerSpawn (Y_GROUPS/Y_Classes) - by Scrillex - 21.01.2013, 23:30
Re: Hello again... Same topic. OnPlayerSpawn (Y_GROUPS/Y_Classes) - by Scrillex - 22.01.2013, 11:04
Re: Hello again... Same topic. OnPlayerSpawn (Y_GROUPS/Y_Classes) - by McBan - 22.01.2013, 11:39
Re: Hello again... Same topic. OnPlayerSpawn (Y_GROUPS/Y_Classes) - by Scrillex - 22.01.2013, 12:14

Forum Jump:


Users browsing this thread: 1 Guest(s)