12.04.2016, 10:38
Hello i want to lock team TF141 with password... How to do it? Here is the code:
If you need player class tell me
PHP код:
// Teams
#define TEAM_CIVIL 0
#define TEAM_GROVE 1
#define TEAM_BALLAS 2
#define TEAM_VAGOS 3
#define TEAM_AZTECAS 4
#define TEAM_LSPD 5
#define TEAM_TF141
PHP код:
public OnPlayerRequestClass(playerid, classid)
{
gPlayerClass[playerid] = classid;
switch (classid) {
case 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19:
{
gTeam[playerid] = TEAM_CIVIL;
GameTextForPlayer(playerid, "~y~~h~~h~CIVILIAN", 1000, 6);
}
case 20,21,22:
{
gTeam[playerid] = TEAM_GROVE;
GameTextForPlayer(playerid, "~g~Grove Street Families", 1000, 6);
ApplyAnimation(playerid,"PED","strip_G",4.1,1,1,1,1,1);
}
case 23,24,25:
{
gTeam[playerid] = TEAM_BALLAS;
GameTextForPlayer(playerid, "~p~Front Yard Ballas", 1000, 6);
ApplyAnimation(playerid,"PED","strip_G",4.1,1,1,1,1,1);
}
case 26,27,28:
{
gTeam[playerid] = TEAM_VAGOS;
GameTextForPlayer(playerid, "~y~Los Santos Vagos", 1000, 6);
ApplyAnimation(playerid,"PED","strip_G",4.1,1,1,1,1,1);
}
case 29,30,31:
{
gTeam[playerid] = TEAM_AZTECAS;
GameTextForPlayer(playerid, "~b~~h~~h~Vario Los Azteca", 1000, 6);
}
case 32,33,34,35:
{
gTeam[playerid] = TEAM_LSPD;
GameTextForPlayer(playerid, "~y~~h~~h~LOS SANTOS POLICE DEPARTAMENT", 1000, 6);
}
}
SetPlayerPos(playerid, 2524.2695,-1696.2926,18.2204);
SetPlayerFacingAngle( playerid, 2.3616 );
SetPlayerCameraPos(playerid, 2523.7749,-1692.6855,18.9011);
SetPlayerCameraLookAt(playerid, 2524.2695,-1696.2926,18.2204);
return 1;
}