Ich bekome keine fehler aber wenn ich Polizistbin dann spawne ich nicht da wo ich spawnen soll ( ich spawn beim newbie spawn...)
Bitte helft mir...
hier der code.
public OnPlayerSpawn(playerid)
{
if(gTeam[playerid] == Team_Zivi)
{
SetPlayerPos(playerid,1672.7024,-1908.6949,21.9542);
SetPlayerColor(playerid,Weiss);
}
if(gTeam[playerid] == Team_Cop)
{
SetPlayerPos(playerid,1551.3191,-1675.3053,15.7950);
SetPlayerColor(playerid,DBlau);
}
if(gTeam[playerid] == Team_Medic)
{
SetPlayerPos(playerid,1741.9517,-1090.9430,24.0781);
SetPlayerColor(playerid,DRot);
}
if(gTeam[playerid] == Team_Biker)
{
SetPlayerPos(playerid,322.7155,-1775.8752,4.8836);
SetPlayerColor(playerid,Grün);
}
if(gTeam[playerid] == Team_Grove)
{
SetPlayerPos(playerid,2492.8567,-1671.6433,13.3359);
SetPlayerColor(playerid,DGrün);
}
return 1;
}
MFG Acrio