How do I make a Team -
Mike Garber - 31.05.2009
Hi Guys!
I would like to have an easy tutorial on How to make a Team, and How to make commands that are only avaliable for a Team.
* How to make the team itself
* A command that set the player to the team that is created
* When the user has entered the command, he Is on the special team, and can now use the commands that are only avaliable for that team.
Because, I would like to have a secret command, like /319231949 that set the player to a Admin/Moderator/Gang Team,
And now they have access to the commands for that team, like for Admins, now they have access to /kick /ban etc.
I am a n00b, And please don't link to the SA:MP Wiki as ther is no such there...
And don't tell me to use Search, cuz All I find is people telling others to use Search function, or Gamemodes...
Re: How do I make a Team -
Ignas1337 - 31.05.2009
you can use iether a variable or a function...
static gTeam[MAX_PLAYERS];
or GetPlayerTeam(to check if he's in a certain team)/SetPlayerTeam ( to assign a player to a team)
Re: How do I make a Team -
Mike Garber - 31.05.2009
I need help to create the team, thats the most important. And I cant understand what you are saying... , well I have for sure read some topics about creating teams, but it just doesnt
explain it, I mean where to put it, How to customize etc. etc.
Re: How do I make a Team -
Mike Garber - 31.05.2009
Bump, Because noone gives any answer even tho I know thousands of you know but Just dont wanna make the code-language continue to live, and just die out when you get tired of it.
Re: How do I make a Team -
madmatty - 22.06.2009
Quote:
Originally Posted by mavtias
Bump, Because noone gives any answer even tho I know thousands of you know but Just dont wanna make the code-language continue to live, and just die out when you get tired of it.
|
i need same help i can show you how to make the team but not commands for the team in ****** put samp wiki and it 1st thing they teach u on basin scripting to write a commands in wiki again search for dcmd
Re: How do I make a Team -
Donny_k - 22.06.2009
Quote:
Originally Posted by mavtias
Bump, Because noone gives any answer even tho I know thousands of you know but Just dont wanna make the code-language continue to live, and just die out when you get tired of it.
|
SAMP will continue fine without your question being answered and have you ever thought that maybe we are off working on our own problems and not sat here 24/7 waiting for you to post so we can fix your problem.
Re: How do I make a Team -
Geekzor - 22.06.2009
Quote:
Originally Posted by mavtias
I need help to create the team, thats the most important. And I cant understand what you are saying... , well I have for sure read some topics about creating teams, but it just doesnt
explain it, I mean where to put it, How to customize etc. etc.
|
sry but on SA:MP WIKI i can learn on my own how to make teams (but i ahve problems with teams colors) u can find on SA:MP WIKI much about how to do teams ... try and u will see
Re: How do I make a Team -
madmatty - 23.06.2009
Quote:
Originally Posted by Geekzor
Quote:
Originally Posted by mavtias
I need help to create the team, thats the most important. And I cant understand what you are saying... , well I have for sure read some topics about creating teams, but it just doesnt
explain it, I mean where to put it, How to customize etc. etc.
|
sry but on SA:MP WIKI i can learn on my own how to make teams (but i ahve problems with teams colors) u can find on SA:MP WIKI much about how to do teams ... try and u will see 
|
it allso shows u how to make team colours
SetPlayerToTeamColor(playerid)
{
if (gTeam[playerid] == TEAM_COP)
{
SetPlayerColor(playerid, TEAM_COP_COLOR);
}
if (gTeam[playerid] == TEAM_ARMSDEALER)
{
SetPlayerColor(playerid, TEAM_ARMSDEALER_COLOR);
}
if (gTeam[playerid] == TEAM_MEDIC)
{
SetPlayerColor(playerid, TEAM_MEDIC_COLOR);
}
if (gTeam[playerid] == TEAM_KIDNAPPER)
{
SetPlayerColor(playerid, TEAM_KIDNAPPER_COLOR);
}
else if (gTeam[playerid] == TEAM_CARJACKER)
{
SetPlayerColor(playerid, TEAM_CARJACKER_COLOR);
}
}
#define TEAM_COP 1
#define TEAM_ARMSDEALER 2
#define TEAM_MEDIC 3
#define TEAM_KIDNAPPER 4
#define TEAM_CARJACKER 5
#define TEAM_CARJACKER_COLOR 0xFFFFFFAA // white
#define TEAM_KIDNAPPER_COLOR 0xFFFFFFAA // white
#define TEAM_MEDIC_COLOR 0x800080FF // purple
#define TEAM_COP_COLOR 0x0000FFFF // Blue
#define TEAM_ARMSDEALER_COLOR 0xFFFFFFAA // white
and so on