Hallo Leute
Bei mir ist es so das alle Fraktionen außer die Fraktionen die Gangwar starten können nach dem Tod im Krankenhaus für 60 Sek spawnen.
Ich will es so machen das man auch als Gang/Mafia auch nach dem Tod im Krankenhaus spawnt aber das geht einfach garnicht.
Die Gangs/Mafien werden nur im Gangwar Gebiet nach dem Tod im Krankenhaus gespawnt aber außerhalb spawnen die nach 2 sek in der Base wieder.
Ich habe 0 Ahnung wo das im Script liegen konnte.
Hat jemand eine Idde?
Function OnPlayerDeath(playerid, killerid, reason){ SetPlayerCameraPos(playerid,1997.0121,-1450.9044,44.1359); SetPlayerCameraLookAt(playerid,1999.7771,-1447.8638,44.1359); SetPlayerColor(playerid,TEAM_HIT_COLOR); ResetPlayerWeapons(playerid); SetPlayerPos(playerid,2069.4993,-1415.4385,23.4259 ); SetPlayerInterior(playerid, 0); GW_OnPlayerDeath(playerid, killerid, reason); M_OnPlayerDeath(playerid, killerid, reason); new Float:x,Float:y,Float:z; GetPlayerPos(playerid,x,y,z); if(GetPlayerWeapon(playerid) == 24) { //Deagle DeagleDrop = CreatePickup(348,4,x,y,z); }
Function OnPlayerSpawn(playerid){//NPC BOTif(IsPlayerNPC(playerid)) return 1;
Spawned[playerid] = 1; if (PlayerInfo[playerid][pAdmin] > 0)//:D { TextDrawShowForPlayer(playerid,OTickets[playerid]); } TextDrawHideForPlayer(playerid,WelcomeOne); TextDrawShowForPlayer(playerid, ForumAnzeige1); TextDrawShowForPlayer(playerid, ForumAnzeige2); TextDrawShowForPlayer(playerid, ForumAnzeige3); TextDrawShowForPlayer(playerid,Uhrzeit); TextDrawShowForPlayer(playerid,Datum); GW_OnPlayerSpawn(playerid); SetTimer("Krankenhaus", 10000, 0); M_OnPlayerSpawn(playerid); TextDrawShowForPlayer(playerid,Copyright); if(PlayerInfo[playerid][pTot] == 1) { SendClientMessage(playerid, COLOR_WHITE, " "); SendClientMessage(playerid, COLOR_WHITE, " "); SendClientMessage(playerid, COLOR_WHITE, " "); SendClientMessage(playerid, COLOR_WHITE, " "); SendClientMessage(playerid, COLOR_WHITE, " "); SendClientMessage(playerid, COLOR_WHITE, " "); SendClientMessage(playerid, COLOR_GREEN, "Los Santos Krankenhaus "); SendClientMessage(playerid, COLOR_WHITE, "Du bist nun im Krankenhaus"); SendClientMessage(playerid, COLOR_WHITE, "Die Ärzte werden dir helfen"); SendClientMessage(playerid, COLOR_WHITE, "Du wirst in 60 Sekunden Wiederbelebt"); SetPlayerSpawn(playerid); if(IsPlayerInFrac(playerid, 1)) { SetPlayerColor(playerid,NAMECOLOR_LSCOP); } else if(IsPlayerInFrac(playerid, 4)) { SetPlayerColor(playerid, NAMECOLOR_MEDIC); } else { SetPlayerColor(playerid,TEAM_HIT_COLOR); } ResetPlayerWeapons(playerid); return 1; }
forward GW_OnPlayerSpawn(playerid);public GW_OnPlayerSpawn(playerid){ if(!GetPVarInt(playerid,"Spawned")){ SetPVarInt(playerid,"Spawned",1); for(new fs;fs<sizeof(FightSystem);fs++){ if(FightSystem[fs][fsAttackFaction] != -255 && FightSystem[fs][fsFightTime]){ GangZoneFlashForPlayer(playerid,FightSystem[fs][fsZoneID],GetZoneColorOfFaction(FightSystem[fs][fsAttackFaction])); if(GetPlayerFaction(playerid) == FightSystem[fs][fsOwnerFaction] || GetPlayerFaction(playerid) == FightSystem[fs][fsAttackFaction]){ TextDrawShowForPlayer(playerid,Fight); TextDrawShowForPlayer(playerid,FightSystem[fs][fsWinFaction]); TextDrawShowForPlayer(playerid,FightSystem[fs][fsLoseFaction]); TextDrawShowForPlayer(playerid,FightSystem[fs][fsWinKills]); TextDrawShowForPlayer(playerid,FightSystem[fs][fsLoseKills]); } } } }return 1;}