21.01.2013, 23:30
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--->
Everything is working on public OnPlayerRequestClass(playerid, classid)
Now I cant get spawn points. Maybe someone can help me out!
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] == 0 || g_pClassID[playerid] == 1 || g_pClassID[playerid] == 2 || g_pClassID[playerid] == 3)
{
Group_SetPlayer(gCrips, playerid, true);
SetPlayerInterior(playerid, 3);
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(gIdlewood, playerid, true);
SetPlayerInterior(playerid, 5);
SetPlayerPos(playerid,319.8876,1124.1194,1084.3733);
}
Now I cant get spawn points. Maybe someone can help me out!