Factions without Class Selection
#1

Hello, is it possible to use gTeam to make factions/gangs without adding Class Selection ? I mean, my script skips the class selection and you must only register/login, then change the skin at the shop not in the class selection.

If it isn't possible to use gTeam, is there any other way to make it ?
Reply
#2

Try to give us the Code of your Team if you can

and for my oppinion if your server keep skiping the value of Class's Try to make the class chose ,after Login System directly and

(are you using roleplay script ? ))
Reply
#3

I am using a RP script. But I didn't mean I want to add Class Selection, I want the server to SKIP it. I just don't know how to make teams without classes, so I need some help.. Like on GF, but I can't understand looking on that script.
Reply
#4

As i understood, you want to skip team selection (i hope that's right )

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetTimerEx("SkipTeam", 10, false, "i", playerid);
    return 1;
}

forward SkipTeam(playerid);

public SkipTeam(playerid)
{
    SpawnPlayer(playerid);
}
1.Add this to your game mode.
2.This will choose the first team.
Reply
#5

Quote:
Originally Posted by DeMoX
Посмотреть сообщение
pawn Код:
...

public SkipTeam(playerid)
{
    SpawnPlayer(playerid);
}
Why not this:
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SpawnPlayer(playerid);
    return 1;
}
Your doing the exact same thing but with a 10ms delay. Both these bad advice the OP should ignore because it will break his current code for no gain.

@OP All gTeam is, is a variable so you can set it anywhere in the code.
Reply
#6

Quote:
Originally Posted by iggy1
Посмотреть сообщение
Why not this:
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SpawnPlayer(playerid);
    return 1;
}
Your doing the exact same thing but with a 10ms delay. Both these bad advice the OP should ignore because it will break his current code for no gain.

@OP All gTeam is, is a variable so you can set it anywhere in the code.
Dude, have you tested it? it wouldn't work because the player spawns before the class selection appears... Test it
Reply
#7

So you can't spawn a player from class select? I think it's you who needs to test.

And to answer your question, yes i have tested it on a mode that ran for nearly 3 years.

Additionally what your doing is the EXACT same thing but with a 10ms delay.
Reply
#8

Quote:
Originally Posted by iggy1
Посмотреть сообщение
So you can't spawn a player from class select? I think it's you who needs to test.
Players can be spawned from class select. but your code is too fast...the player doesn't get spawned because the player get spawned before the class selection appear, just test your code.
For your info, mine is tested and working perfectly.
Reply
#9

Dude, please just go to your samp server, create a new gamemode, go to
pawn Код:
OnPlayerRequestClass(playerid, classid)
{
 spawn(playerid);
return 1;
}
run the server, you wouldn't be spawned.
then add the timer and you will be spawned.
Reply
#10

Sorry for wasting your time, but this isn't what I meant...

I mean, is it possible TO MAKE factions with gTeam on a gamemode that skips class selection ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)