Nabend,
ich wollte das so machen, das wenn man in einer DM-Arena ist und stirbt dort auch wieder spawnt.
Habe das jetzt bei OnPlayerSpawn reingeschreiben, funktioniert InGame nur leider nicht
public OnPlayerSpawn(playerid)
{
if(IsPlayerInDMArena(playerid))
{
SetPlayerSkin(playerid,264);
SetPlayerPos(playerid,1384.3192,2186.1064,11.0234);
SetCameraBehindPlayer(playerid);
ResetPlayerWeapons(playerid);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
GivePlayerWeapon(playerid,24,750);
GivePlayerWeapon(playerid,31,500);
GivePlayerWeapon(playerid,29,750);
}
if(IsPlayerInMGArena(playerid))
{
SetPlayerSkin(playerid,264);
SetPlayerPos(playerid,213.9248,1881.9453,13.3965);
SetCameraBehindPlayer(playerid);
ResetPlayerWeapons(playerid);
SetPlayerHealth(playerid,10000);
SetPlayerArmour(playerid,10000);
GivePlayerWeapon(playerid,38,10000);
}
if(!IsPlayerInDMArena(playerid) || !IsPlayerInMGArena(playerid))
{
switch(GetPVarInt(playerid,"Fraktion"))
{
case 0:{}
case 1:{SetPlayerPos(playerid,LSPDspawn);SetPlayerSkin(playerid,288);SetPlayerColor(playerid,COLOR_BLUE);SetPlayerArmour(playerid,100);
GivePlayerWeapon(playerid,24,750);GivePlayerWeapon(playerid,3,1);GivePlayerWeapon(playerid,29,750);}
case 2:{SetPlayerSkin(playerid,270);GivePlayerWeapon(playerid,24,250);GivePlayerWeapon(playerid,5,1);}
case 3:{SetPlayerSkin(playerid,287);SetPlayerColor(playerid,COLOR_DGREEN);
GivePlayerWeapon(playerid,24,750);GivePlayerWeapon(playerid,29,750);GivePlayerWeapon(playerid,31,500);}
case 4:{SetPlayerSkin(playerid,70);SetPlayerColor(playerid,COLOR_dCHAT);GivePlayerWeapon(playerid,41,1000);}
case 5:{SetPlayerSkin(playerid,187);SetPlayerColor(playerid,COLOR_ORANGE);GivePlayerWeapon(playerid,41,1000);}
case 6:{SetPlayerSkin(playerid,16);}
}
}
return 1;
}
Ich hoffe einer von euch kennt die Lösung
MfG
Cr4sh