So again problem which I cant think out. (y_classes, y_groups)!
#1

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);
    } 
So my first spawn piont is in CJ house the problem is... When I chose second group it spawns in same localation.. How it's possible to set to second spawn?
Reply
#2

Someone? Please maybe someone knows the answer!
Reply
#3

Quote:
Originally Posted by Scrillex
Посмотреть сообщение
Someone? Please maybe someone knows the answer!
well, if it's just on the game session where he should spawn on antoher location you could add:

somewhere on top of the script:

PHP код:
new spawncount[MAX_PLAYERS]; 
PHP код:
spawncount[playerid]++;
if(
spawncount[playerid] == 1)
{
//CJs House
}
else if(
spawncount[playerid] == 2)
{
//next spawn
}
else if(
spawncount[playerid] == 3)
{
//reset spawn to CJs? spawncount[playerid] = 1;

Reply
#4

You didn't get it ...

PHP код:
else if(g_pClassID[playerid] == 20 || g_pClassID[playerid] == 21 || g_pClassID[playerid] == 22 ||  g_pClassID[playerid] == 23
(thouse are skin ids not player ids.) I don't need random spawning I need current localotions. Because I cant spawn Ballas in CJ house.. It's absord.. But anyway thank you for your time and post
Reply
#5

Quote:
Originally Posted by Scrillex
Посмотреть сообщение
You didn't get it ...

PHP код:
else if(g_pClassID[playerid] == 20 || g_pClassID[playerid] == 21 || g_pClassID[playerid] == 22 ||  g_pClassID[playerid] == 23
(thouse are skin ids not player ids.) I don't need random spawning I need current localotions. Because I cant spawn Ballas in CJ house.. It's absord.. But anyway thank you for your time and post
oh, my fault
Reply
#6

Quote:
Originally Posted by Harry :)
Посмотреть сообщение
oh, my fault
All okay mate anyway +rep!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)