hej sry wenn ich mich bisl dumm anstelle aber funzt irgendwie immer noch ned :
#include <a_samp>
#include <core>
#include <float>
forward SetPlayerToTeamColor(playerid);
forward SetupPlayerForClassSelection(playerid);
forward SetPlayerTeamFromClass(playerid,classid);
forward ExitTheGameMode();
forward ZahlTag();
static gTeam[MAX_PLAYERS];
new
medicclass1,
medicclass2,
medicclass3,
policeclass1,
policeclass2,
policeclass3,
policeclass4,
policeclass5,
policeclass6,
policeclass7,
policeclass8,
policeclass9;
#define TEAM_Medic 0
#define TEAM_Cops 1
#define TEAM_Medic_COLOR 0x33AA33AA
#define TEAM_Cops_COLOR 0x3333AAAA
#if defined FILTERSCRIPT
#else
main()
{
print("\n----------------------------------");
print(" GaS Cloudy Gamemode ");
print("----------------------------------\n");
}
public OnGameModeInit()
{
UsePlayerPedAnims();
//Cops
policeclass1=AddPlayerClass(288,1116.6166,-1618.4670,20.4910,90.0220,0,0,0,0,0,0); // spawnpolice
policeclass2=AddPlayerClass(285,1116.6166,-1618.4670,20.4910,90.0220,0,0,0,0,0,0); // spawnpolice
policeclass3=AddPlayerClass(284,1116.6166,-1618.4670,20.4910,90.0220,0,0,0,0,0,0); // spawnpolice
policeclass4=AddPlayerClass(283,1116.6166,-1618.4670,20.4910,90.0220,0,0,0,0,0,0); // spawnpolice
policeclass5=AddPlayerClass(282,1116.6166,-1618.4670,20.4910,90.0220,0,0,0,0,0,0); // spawnpolice
policeclass6=AddPlayerClass(281,1116.6166,-1618.4670,20.4910,90.0220,0,0,0,0,0,0); // spawnpolice
policeclass7=AddPlayerClass(280,1116.6166,-1618.4670,20.4910,90.0220,0,0,0,0,0,0); // spawnpolice
policeclass8=AddPlayerClass(279,1116.6166,-1618.4670,20.4910,90.0220,0,0,0,0,0,0); // spawnpolice
//medics
medicclass1=AddPlayerClass(276,1116.6166,-1618.4670,20.4910,90.0220,0,0,0,0,0,0); // spawnMedic
medicclass2=AddPlayerClass(275,1116.6166,-1618.4670,20.4910,90.0220,0,0,0,0,0,0); // spawnMedic
medicclass3=AddPlayerClass(274,1116.6166,-1618.4670,20.4910,90.0220,0,0,0,0,0,0); // spawnMedic
// Don't use these lines if it's a filterscript
SetGameModeText("RL RPG by Cloudy");
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1449.8280,-2287.5422,13.5469);//dort steht der spieler während der skinauswahl
SetPlayerCameraPos(playerid, 1446.0238,-2287.4514,13.5469);//dort steht die kamera, die ihn anguckt
SetPlayerCameraLookAt(playerid, 1449.8280,-2287.5422,13.5469);//dort steht der spieler, der ihn anguckt (die selben koordinaten wie bei SetPlayerPos)
SetPlayerFacingAngle(playerid, 0.0);//die drehung
if(classid == medicclass1 || classid == medicclass2 || classid == medicclass3)
{
gTeam[playerid] = TEAM_Medic;
}
if(classid == policeclass1 || classid == policeclass2 || classid == policeclass3 || classid == policeclass4 || classid == policeclass5 || classid == policeclass6 || classid == policeclass7 || classid == policeclass8 || classid == policeclass9)
{
gTeam[playerid] = TEAM_Cops;
}
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public SetPlayerToTeamColor(playerid)
{
if(gTeam[playerid] == TEAM_Medic) {
SetPlayerColor(playerid,TEAM_Medic_COLOR); // green
} else if(gTeam[playerid] == TEAM_Cops) {
SetPlayerColor(playerid,TEAM_Cops_COLOR); // blue
}
}
keiner nen plan?