Hey
Wenn ich den Befehl "/cops" mache sagt er ich bin kein Cop obwohls stimmt mach ich den Befehl /terror obwohl er für terror ist zeigt er den befehl an
wenn ich jedoch Terror bin und /cops nutze kann ich befehl sehn mach ich /terror seh ich nix
Kann mal jmd in mein Script schauen per Teamviewer und korriegiren wäre Cool
Das Script:
new gTeam[MAX_PLAYERS];
#define TEAM_NONE 914
#define TEAM_COP 912
#define TEAM_ROB 913
new Cops[6];
new Terror[6];
Cops[0] = AddPlayerClass(281,1568.4875,-1690.8134,5.8906,180.2499,3,1,24,300,31,2500);
Cops[1] = AddPlayerClass(285,1568.4875,-1690.8134,5.8906,180.2499,3,1,24,300,31,2500);
Cops[2] = AddPlayerClass(286,1568.4875,-1690.8134,5.8906,180.2499,3,1,24,300,31,2500);
Cops[3] = AddPlayerClass(288,1568.4875,-1690.8134,5.8906,180.2499,3,1,24,300,31,2500);
Cops[4] = AddPlayerClass(287,1568.4875,-1690.8134,5.8906,180.2499,3,1,24,300,31,2500);
Cops[5] = AddPlayerClass(166,1568.4875,-1690.8134,5.8906,180.2499,3,1,24,300,31,2500);
// _-------------------------------
Terror[0] = AddPlayerClass(6,1759.1122,-1093.4344,24.0781,359.2631,24,300,27,100,30,2500);
Terror[1] = AddPlayerClass(27,1759.1122,-1093.4344,24.0781,359.2631,24,300,27,100,30,2500);
Terror[2] = AddPlayerClass(5,1759.1122,-1093.4344,24.0781,359.2631,24,300,27,100,30,2500);
Terror[3] = AddPlayerClass(12,1759.1122,-1093.4344,24.0781,359.2631,24,300,27,100,30,2500);
Terror[4] = AddPlayerClass(16,1759.1122,-1093.4344,24.0781,359.2631,24,300,27,100,30,2500);
Terror[5] = AddPlayerClass(24,1759.1122,-1093.4344,24.0781,359.2631,24,300,27,100,30,2500);
public OnPlayerRequestClass(playerid, classid)
{
if(classid >= Cops[0] && classid <= Cops[5])
{
GameTextForPlayer(playerid, "COPS", 3000, 4);
gTeam[playerid] = TEAM_COP;
SetPlayerPos(playerid, 1568.4875,-1690.8134,5.8906);
SetPlayerFacingAngle(playerid,180.2499);
SetPlayerCameraPos(playerid, 1568.6139,-1692.3918,5.8906);
SetPlayerCameraLookAt(playerid, 1568.4875,-1690.8134,5.8906);
}
if(classid >= Terror[0] && classid <= Terror[5])
{
GameTextForPlayer(playerid, "TERROR", 3000, 4);
gTeam[playerid] = TEAM_ROB;
SetPlayerPos(playerid, 1759.1122,-1093.4344,24.0781);
SetPlayerFacingAngle(playerid,359.2631);
SetPlayerCameraPos(playerid, 1759.5435,-1091.7755,24.0781);
SetPlayerCameraLookAt(playerid, 1759.1122,-1093.4344,24.0781);
}
return 1;
}
if(strcmp(cmdtext,"/cops",true)==0)
{
if(gTeam[playerid] == TEAM_COP)return SendClientMessage(playerid,ROT,"Du bist kein Cop");
{
SendClientMessage(playerid,ROT,"COP BEFEHLE: ");
}
return 1;
}
if(strcmp(cmdtext,"/terror",true)==0)
{
if(gTeam[playerid] == TEAM_ROB)return SendClientMessage(playerid,ROT,"Du bist kein Terror");
{
SendClientMessage(playerid,ROT,"TERROR BEFEHLE: ");
}
return 1;
}
//edit: Script Hinzugefügt
//edit: Script Neu Editiert
//edit: Theemen Namen geändert