14.04.2010, 18:00
Hello. Yea I still got that bug. When I die I doesn't respawn.
So when I use /kill or when somebody kills me.
Only my health goes to 0. But I don't fell on the ground and respawn.
I only cannot enter vehicles. Or other things. When I jump of a small building after it happends, I finnaly die!
Here is a video:
http://addy.md-design.be/Bugreport_hallo.swf ( need to load a few sec)
Sometimes it works. Sometimes I doesn't. I will make a video when it's active.
I have to solve this bug fastly. We are going to buy Hosted List in a few days. It will be a gaos when people doesn't respawn at the Deathmatch zone. They all will log.
The server has to been ready then.
If you can solve this for me or help me to solve it. I LOVE YOu.
I don't think it's a hard bug. The bug is justed hided somewere.
OnPlayerDeath
OnPlayerSpawn
OnPlayerSpawn
So when I use /kill or when somebody kills me.
Only my health goes to 0. But I don't fell on the ground and respawn.
I only cannot enter vehicles. Or other things. When I jump of a small building after it happends, I finnaly die!
Here is a video:
http://addy.md-design.be/Bugreport_hallo.swf ( need to load a few sec)
Sometimes it works. Sometimes I doesn't. I will make a video when it's active.
I have to solve this bug fastly. We are going to buy Hosted List in a few days. It will be a gaos when people doesn't respawn at the Deathmatch zone. They all will log.
The server has to been ready then.
If you can solve this for me or help me to solve it. I LOVE YOu.
I don't think it's a hard bug. The bug is justed hided somewere.
OnPlayerDeath
OnPlayerSpawn
Код:
public OnPlayerDeath(playerid, killerid, reason) { pStats[playerid][Spawned] = 0; if(pStats[playerid][UsingAnim]) { pStats[playerid][UsingAnim] = 0; TextDrawHideForPlayer(playerid,txtAnimHelper); } if(pStats[killerid][Zone] == 1 || pStats[killerid][Zone] == 3) { SendDeathMessage(killerid, playerid, reason); if(pStats[playerid][Admin] >= 1) { if(pStats[killerid][Zone] == 1) { SendClientMessage(killerid, Green, "Newkill: You received $10.000 and 1 Points for murder an Admin!"); GivePlayerCash(killerid,10000); pStats[killerid][Points]++; } if(pStats[killerid][Zone] == 3) { SendClientMessage(killerid, Green, "Newkill: You received $20.000 and 2 Points for murder an Admin!"); GivePlayerCash(killerid,20000); pStats[killerid][Points]+=2;} } else { if(pStats[killerid][Zone] == 1) { SendClientMessage(killerid, Green, "Newkill: You received $5.000 and 1 Points for this murder"); GivePlayerCash(killerid,5000); pStats[killerid][Points]++;} if(pStats[killerid][Zone] == 3) { SendClientMessage(killerid, Green, "Newkill: You received $10.000 and 2 Points for this murder"); GivePlayerCash(killerid,10000); pStats[killerid][Points]+=2; } } } for(new i=0; i<MAX_PLAYERS; i++) { if(GetPlayerState(i) == PLAYER_STATE_SPECTATING && pStats[i][pSpec] == playerid) { TogglePlayerSpectating(playerid, 0); pStats[playerid][pSpec] = -1; SpawnPlayer(i); } } return 1; }
Код:
public OnPlayerSpawn(playerid) { pStats[playerid][Spawned] = 1; if(RaceParticipant[playerid] >= 1) { Participants--; RaceParticipant[playerid]=0; DisablePlayerRaceCheckpoint(playerid); SendClientMessage(playerid,Green, "» You leaved the race!"); } if(pStats[playerid][ObjectOn] != -1) { DestroyObject(Shark[playerid]); pStats[playerid][ObjectOn] = -1; } if(pStats[playerid][AFK] == 1) { new string[128]; format(string, sizeof(string), "» %s is now back at The Keyboard!",pName(playerid)); SendClientMessageToAll(0xf073b9ff, string); pStats[playerid][AFK] = 0; } RemovePlayerWeapons(playerid); pStats[playerid][Spawned] = 1; TogglePlayerControllable(playerid, true); pStats[playerid][Skin] = GetPlayerSkin(playerid); if(pStats[playerid][Zone] != 0) { if(pStats[playerid][Zone] == 1) { SetPlayerInZone(playerid,1); } if(pStats[playerid][Zone] == 2) { SetPlayerInZone(playerid,2); } if(pStats[playerid][Zone] == 3) { SetPlayerInZone(playerid,3); } } else { new rand = random(sizeof(RandomSpawnSpawns)); SetPlayerPos(playerid,RandomSpawnSpawns[rand][0], RandomSpawnSpawns[rand][1], RandomSpawnSpawns[rand][2]); SetPlayerFacingAngle(playerid,RandomSpawnSpawns[rand][3]); } return 1; }