/changeteam command
#1

Hey everyone

could someone make a /changeteam command that forces you to team selection?


Thanks all!
Reply
#2

Any commands, functions, name of variables? ANYTHING?
Reply
#3

Not really,I just need a /changeteam command that force you to skin selection,nothing else.
Reply
#4

Quote:
Originally Posted by James_Nick
Посмотреть сообщение
Hey everyone

could someone make a /changeteam command that forces you to team selection?


Thanks all!
Umm for you yes but I need your varibles

Edit: SO its an admin command? and to force to skin selection?
Reply
#5

Hints (may help you)

PHP код:
//if the variable is gTeam for example (which defines the player on which troop)
CMD:changeteam(playeridparams[])
{
    if(
gTeam[playerid] == /*TEAM 1*/)
    {
        
//YOUR CODE
        
gTeam[playerid] = 2/*TEAM 2*/
    
}
    else if(
gTeam[playerid] == /*TEAM 1*/)
    {
        
//YOUR CODE
        
gTeam[playerid] = 1/*TEAM 2*/
    
}
    
//and so on if you want
    
return 1;

Reply
#6

https://sampwiki.blast.hk/wiki/ForceClassSelection

use that to force them to class selection in your command.
Reply
#7

Thanks everyone!
Reply
#8

ForceClassSelection function works only after player death. You should use y_groups include to get a function Group_ReturnToClassSelection to do this automaticly.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)