Hello need lil bit help
#1

Hello, i'm facing some weird bugs in my server, when someone shoots or aim to someone, the camera position changes itself to some other random postion, for example; someone is standing next to me and when i shoot the guy who's standing next to me, the camera itself changes its position.

and OnPlayerDeath is also bugged when i kill someone, he gets killed twice or even thrice.

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
   for(new 
x=0x<MAX_PLAYERSx++)
   {
      if(
GetPlayerState(x) == PLAYER_STATE_SPECTATING && spectatorid[x] == playerid)
      {
           
AdvanceSpectate(x);
      }
   }
   
UsedB[playerid] = 0;
   if(
Event[playerid] == && g_IsPlayerDueling[playerid] == 0)
   {
      
//DropPlayerWeapons(playerid);
      
if(killerid != INVALID_PLAYER_ID)
      {
         if(
gotheadshot[playerid] == 0)
         {
            
TogglePlayerSpectating(playeridtrue);
            
PlayerSpectatePlayer(playeridkillerid1);
            
isspec[playerid] = 1;
            
TextDrawShowForPlayer(playeridspectext);
            
spectimer[playerid] = SetTimerEx("StopSpec"5000false"i"playerid);
         }
         else if(
gotheadshot[playerid] == 1) { gotheadshot[playerid] = 0; }
      }
   }
   if(
killerid == INVALID_PLAYER_ID)
   {
      if(
g_IsPlayerDueling[playerid] == 1)
      {
         if(
playerid == g_DuelingID1) { }
         else
         {
            new 
sString[250];
            
format(sStringsizeof(sString), "[DUEL] "COL_WHITE"%s won the duel against %s."PlayerName(g_DuelingID1), PlayerName(playerid));
            
SendClientMessageToAll(COLOR_BLUEsString);
            
g_GotInvitedToDuel[playerid] = 0;
            
g_HasInvitedToDuel[playerid] = 0;
            
g_IsPlayerDueling[playerid]  = 0;
            
g_GotInvitedToDuel[g_DuelingID1] = 0;
            
g_HasInvitedToDuel[g_DuelingID1] = 0;
            
g_IsPlayerDueling[g_DuelingID1]  = 0;
            
g_DuelInProgress 0;
            
SetPlayerTeam(playeridbeforeduelteam[playerid]);
            
SetPlayerTeam(g_DuelingID1beforeduelteam[g_DuelingID1]);
            
ResetPlayerWeapons(g_DuelingID1);
            
SpawnPlayer(g_DuelingID1);
            
g_DuelingID1 = -1;
            
g_DuelingID2 = -1;
         }
         if(
playerid == g_DuelingID2) { }
         else
         {
            new 
sString[250];
            
format(sStringsizeof(sString), "[DUEL] "COL_WHITE"%s won the duel against %s."PlayerName(g_DuelingID2), PlayerName(playerid));
            
SendClientMessageToAll(COLOR_BLUEsString);
            
g_GotInvitedToDuel[playerid] = 0;
            
g_HasInvitedToDuel[playerid] = 0;
            
g_IsPlayerDueling[playerid]  = 0;
            
g_GotInvitedToDuel[g_DuelingID2] = 0;
            
g_HasInvitedToDuel[g_DuelingID2] = 0;
            
g_IsPlayerDueling[g_DuelingID2]  = 0;
            
g_DuelInProgress 0;
            
SetPlayerTeam(playeridbeforeduelteam[playerid]);
            
SetPlayerTeam(g_DuelingID2beforeduelteam[g_DuelingID2]);
            
ResetPlayerWeapons(g_DuelingID2);
            
SpawnPlayer(g_DuelingID2);
            
g_DuelingID1 = -1;
            
g_DuelingID2 = -1;
         }
      }
   }
   if(
killerid != INVALID_PLAYER_ID)
   {
      if(
g_IsPlayerDueling[playerid] == && g_IsPlayerDueling[killerid] == 1)
      {
         new 
Float:HealthFloat:ArmorsString[250];
         
GetPlayerHealth(killeridHealth);
         
GetPlayerArmour(killeridArmor);
         
format(sStringsizeof(sString), "[DUEL] "COL_WHITE"%s won the duel against %s "COL_WHITE"and has %.2f health and %.2f armor left!"PlayerName(killerid), PlayerName(playerid), HealthArmor);
         
SendClientMessageToAll(COLOR_BLUEsString);
         
g_GotInvitedToDuel[playerid] = 0;
         
g_HasInvitedToDuel[playerid] = 0;
         
g_IsPlayerDueling[playerid]  = 0;
         
g_GotInvitedToDuel[killerid] = 0;
         
g_HasInvitedToDuel[killerid] = 0;
         
g_IsPlayerDueling[killerid]  = 0;
         
SetPlayerTeam(playeridbeforeduelteam[playerid]);
         
SetPlayerTeam(killeridbeforeduelteam[killerid]);
         
g_DuelInProgress 0;
         
g_DuelingID1 = -1;
         
g_DuelingID2 = -1;
         
ResetPlayerWeapons(killerid);
         
SpawnPlayer(killerid);
      }
      else if(
g_IsPlayerDueling[playerid] == && g_IsPlayerDueling[killerid] != 1)
      {
         if(
playerid == g_DuelingID1) { }
         else
         {
            new 
sString[250];
            
format(sStringsizeof(sString), "[DUEL] "COL_WHITE"%s won the duel against %s."PlayerName(g_DuelingID1), PlayerName(playerid));
            
SendClientMessageToAll(COLOR_BLUEsString);
            
g_GotInvitedToDuel[playerid] = 0;
            
g_HasInvitedToDuel[playerid] = 0;
            
g_IsPlayerDueling[playerid]  = 0;
            
g_GotInvitedToDuel[g_DuelingID1] = 0;
            
g_HasInvitedToDuel[g_DuelingID1] = 0;
            
g_IsPlayerDueling[g_DuelingID1]  = 0;
            
g_DuelInProgress 0;
            
SetPlayerTeam(playeridbeforeduelteam[playerid]);
            
SetPlayerTeam(g_DuelingID1beforeduelteam[g_DuelingID1]);
            
ResetPlayerWeapons(g_DuelingID1);
            
SpawnPlayer(g_DuelingID1);
            
g_DuelingID1 = -1;
            
g_DuelingID2 = -1;
         }
         if(
playerid == g_DuelingID2) { }
         else
         {
            new 
sString[250];
            
format(sStringsizeof(sString), "[DUEL] "COL_WHITE"%s won the duel against %s."PlayerName(g_DuelingID2), PlayerName(playerid));
            
SendClientMessageToAll(COLOR_BLUEsString);
            
g_GotInvitedToDuel[playerid] = 0;
            
g_HasInvitedToDuel[playerid] = 0;
            
g_IsPlayerDueling[playerid]  = 0;
            
g_GotInvitedToDuel[g_DuelingID2] = 0;
            
g_HasInvitedToDuel[g_DuelingID2] = 0;
            
g_IsPlayerDueling[g_DuelingID2]  = 0;
            
g_DuelInProgress 0;
            
SetPlayerTeam(playeridbeforeduelteam[playerid]);
            
SetPlayerTeam(g_DuelingID2beforeduelteam[g_DuelingID2]);
            
ResetPlayerWeapons(g_DuelingID2);
            
SpawnPlayer(g_DuelingID2);
            
g_DuelingID1 = -1;
            
g_DuelingID2 = -1;
         }
      }
   }
   if(
Event[playerid])
   {
      new 
string[128], reasonMsg[32];
      if(
killerid!=INVALID_PLAYER_ID)
      {
         switch (
reason)
         {
            case 
0: { reasonMsg "Unarmed"; }
            case 
1: { reasonMsg "Brass Knuckles"; }
            case 
2: { reasonMsg "Golf Club"; }
            case 
3: { reasonMsg "Night Stick"; }
            case 
4: { reasonMsg "Knife"; }
            case 
5: { reasonMsg "Baseball Bat"; }
            case 
6: { reasonMsg "Shovel"; }
            case 
7: { reasonMsg "Pool Cue"; }
            case 
8: { reasonMsg "Katana"; }
            case 
9: { reasonMsg "Chainsaw"; }
            case 
10: { reasonMsg "Dildo"; }
            case 
11: { reasonMsg "Dildo"; }
            case 
12: { reasonMsg "Vibrator"; }
            case 
13: { reasonMsg "Vibrator"; }
            case 
14: { reasonMsg "Flowers"; }
            case 
15: { reasonMsg "Cane"; }
            case 
22: { reasonMsg "Pistol"; }
            case 
23: { reasonMsg "Silenced Pistol"; }
            case 
24: { reasonMsg "Desert Eagle"; }
            case 
25: { reasonMsg "Shotgun"; }
            case 
26: { reasonMsg "Sawn-off Shotgun"; }
            case 
27: { reasonMsg "Combat Shotgun"; }
            case 
28: { reasonMsg "MAC-10"; }
            case 
29: { reasonMsg "MP5"; }
            case 
30: { reasonMsg "AK-47"; }
            case 
31:
            {
               if(
GetPlayerState(killerid) == PLAYER_STATE_DRIVER)
               {
                  switch (
GetVehicleModel(GetPlayerVehicleID(killerid)))
                  {
                     case 
447: { reasonMsg "Sea Sparrow Machine Gun"; }
                     default: { 
reasonMsg "M4"; }
                  }
               }
               else
               {
                  
reasonMsg "M4";
               }
            }
            case 
32: { reasonMsg "TEC-9"; }
            case 
33: { reasonMsg "Rifle"; }
            case 
34: { reasonMsg "Sniper Rifle"; }
            case 
37: { reasonMsg "Fire"; }
            case 
38:
            {
                if (
GetPlayerState(killerid) == PLAYER_STATE_DRIVER)
                {
                    switch (
GetVehicleModel(GetPlayerVehicleID(killerid)))
                    {
                        case 
425: { reasonMsg "Hunter Machine Gun"; }
                        default: { 
reasonMsg "Minigun"; }
                    }
                }
                else { 
reasonMsg "Minigun"; }
            }
            case 
41: { reasonMsg "Spraycan"; }
            case 
42: { reasonMsg "Fire Extinguisher"; }
            case 
49: { reasonMsg "Vehicle Collision"; }
            case 
50:
            {
                if (
GetPlayerState(killerid) == PLAYER_STATE_DRIVER)
                {
                    switch (
GetVehicleModel(GetPlayerVehicleID(killerid)))
                    {
                        case 
417425447465469487488497501548563: { reasonMsg "Helicopter Blades"; }
                        default: { 
reasonMsg "Vehicle Collision"; }
                    }
                }
                else { 
reasonMsg "Vehicle Collision"; }
            }
            case 
51:
            {
                if (
GetPlayerState(killerid) == PLAYER_STATE_DRIVER)
                {
                    switch (
GetVehicleModel(GetPlayerVehicleID(killerid)))
                    {
                        case 
425: { reasonMsg "Hunter Rockets"; }
                        case 
432: { reasonMsg "Rhino Turret"; }
                        case 
520: { reasonMsg "Hydra Rockets"; }
                        default: { 
reasonMsg "Explosion"; }
                    }
                }
                else { 
reasonMsg "Explosion"; }
            }
            default: { 
reasonMsg "Unknown"; }
         }
         
format(stringsizeof(string), "[EVENT] %s killed %s. (%s)"PlayerName(killerid), PlayerName(playerid), reasonMsg);
      }
      else
      {
         switch (
reason)
         {
            case 
53:
            {
                
format(stringsizeof(string), "[EVENT] %s died. (Drowned)"PlayerName(playerid));
            }
            case 
54:
            {
                
format(stringsizeof(string), "[EVENT] %s died. (Collision)"PlayerName(playerid));
            }
            default:
            {
                
format(stringsizeof(string), "[EVENT] %s died."PlayerName(playerid));
            }
         }
      }
      for(new 
0MAX_PLAYERSi++)
      {
         if(
Event[i] && IsPlayerConnected(i)) SendClientMessage(iCOLOR_YELLOWstring);
      }
      
Event[playerid] = 0;
      
SetPlayerTeam(playeridgetteam[playerid]);
      
SetPlayerSkin(playeridgetskin[playerid]);
      
TogglePlayerControllable(playerid1);
      new 
Float:xFloat:yFloat:z;
      
GetPlayerPos(playeridxyz);
      
SetPlayerPos(playeridxyz+1);
      
SetPlayerToTeamColour(playerid);
   }
   new 
died[128], Float:xFloat:yFloat:z;
   
SendDeathMessage(killeridplayeridreason);
   if(
OnHellJumper[playerid] == 1)
   {
      
OnHellJumper[playerid] = 0;
      
Delete3DTextLabel(helljumpertext3d[playerid]);
      if(
killerid != INVALID_PLAYER_ID)
      {
         
format(died,sizeof(died),"%s has Been killed by %s, while he was in Hell Jumper",PlayerName(playerid),PlayerName(killerid));
         
SendClientMessageToAll(COLOR_RED,died);
         
GivePlayerScore(killerid4);
         
GivePlayerCash(killerid400);
      }
      return 
1;
   }
   if(
OnAirstrike[playerid] == 1)
   {
      
OnAirstrike[playerid] = 0;
      
Delete3DTextLabel(airstriketext3d[playerid]);
      if(
killerid != INVALID_PLAYER_ID)
      {
         
format(died,sizeof(died),"%s has Been killed by %s, while he was in Air Strike",PlayerName(playerid),PlayerName(killerid));
         
SendClientMessageToAll(COLOR_RED,died);
         
GivePlayerScore(killerid4);
         
GivePlayerCash(killerid400);
      }
      return 
1;
   }
   if(
IsPlayerZombie[playerid] == 1)
   {
      
SetPlayerHealth(playerid100);
      
SetPlayerToClassWeapons(playerid);
      
SetPlayerTeam(playeridzgetpteam[playerid]);
      
SetPlayerSkin(playeridzoskin[playerid]);
      
SetPlayerToTeamColour(playerid);
      
IsPlayerZombie[playerid] = 0;
      
Delete3DTextLabel(zombie3d[playerid]);
      
TogglePlayerControllable(playerid1);
      return 
1;
   }
   if((
GetTickCount()-GetPVarInt(playerid"deathtime")) < 1000)
   {
      
SetPVarInt(playerid"deathspam"GetPVarInt(playerid"deathspam")+1);
      if(
GetPVarInt(playerid"deathspam") >= 3)
      {
         new 
string128[300];
         
SendClientMessage(playeridCOLOR_RED"[ANTI CHEAT]: You have been kicked (Reason: Fake Kill Detected)");
         
format(string128,sizeof(string128),"[ANTI CHEAT]: %s has been kicked (Reason: Fake Kill Detected)"PlayerName(playerid));
         
SendClientMessageToAll(COLOR_REDstring128);
         return 
Kick(playerid);
      }
   }
   
StopAudioStreamForPlayer(playerid);
   if(
KillerStreak[playerid] >= 3)
   {
      if(
killerid != INVALID_PLAYER_ID)
      {
         new 
str5[300];
         
format(str5sizeof(str5), "%s has ended %s's killing spree!"PlayerName(killerid), PlayerName(playerid));
         
SendClientMessage(playerid,COLOR_GREEN,"Killing spree ended!");
         new 
str1[300];
         
format(str1sizeof(str1), "You got +2 score for ending %s's killing spree."PlayerName(playerid));
         
SendClientMessage(killerid,COLOR_GREEN,str1);
         
GivePlayerScore(killerid2);
         
SendClientMessage(playeridCOLOR_GREENstr5);
      }
   }
   
SetPVarInt(playerid"deathtime"GetTickCount());
   
hidden[playerid] = 0;
   
SavePlayerStats(playerid);
   
KillerStreak[playerid] = 0;
   
PlayerInfo[playerid][pDeaths] ++;
   
GetPlayerPos(playeridxyz);
   
KillTimer(CountTime[playerid]);
   if(
helm[playerid] == 1)
   {
      
RemovePlayerAttachedObject(playerid3);
      
helm[playerid] = 0;
   }
   for(new 
all 0all 4all ++) { TextDrawHideForPlayer(playeridZoneTextdraw[all][playerid]); }
   
UsedC[playerid] = 0;
   
isc4attach[playerid] = 0;
   if(
killerid != INVALID_PLAYER_ID)
   {
      if(
OnHellJumper[killerid] == 1)
      {
         
GameTextForPlayer(killerid"~r~HellJumper Kill~n~~w~Good Work~g~~n~500$ And 4 Scores"40004);
         
GivePlayerScore(killerid3);
         return 
1;
      }
      if(
OnAirstrike[killerid] == 1)
      {
         
GameTextForPlayer(killerid"~r~AriStrike Kill~n~~w~Good Work~g~~n~500$ And 4 Scores"40004);
         
GivePlayerScore(killerid3);
         return 
1;
      }
      if(
reason == 50)
      {
         new 
string5[300];
         
format(string5sizeof(string5), "%s(%d) has been killed for heli blade."PlayerName(killerid), killerid);
         
SendClientMessageToAll(COLOR_RED,string5);
         
SetPlayerHealth(killerid,0);
         return 
1;
      }
      if(
GetPlayerTeam(killerid) == TEAM_TERRORIST) { TerrorKills++; }
      if(
GetPlayerTeam(killerid) == TEAM_COPS) { CopsKills++; }
      new 
tmpstr[50];
      
format(tmpstr,sizeof(tmpstr),"~b~Cops: ~w~%d  ~r~Terrorist: ~w~%d",CopsKills,TerrorKills);
      
TextDrawSetString(Counter,tmpstr);
      if(
CopsKills >= 100)
      {
         
TextDrawSetString(Counter"~b~Cops: ~w~0  ~r~Terrorist: ~w~0");
         
CopsKills 0;
         
TerrorKills 0;
         new 
CopsWon[144] = "[Round] "COL_WHITE"Team "COL_RED"Cops "COL_WHITE"has won this round!, 4 Scores and 5,000$ has been given to team "COL_RED"Cops "COL_WHITE".";
         
SendClientMessageToAll(COLOR_LIMECopsWon);
         
GiveScoreToTeam(TEAM_COPS4);
         
GiveCashToTeam(TEAM_COPS5000);
      }
      if(
TerrorKills >= 100)
      {
         
TextDrawSetString(Counter"~b~Cops: ~w~0  ~r~Terrorist: ~w~0");
         
CopsKills 0;
         
TerrorKills 0;
         new 
TerrorWon[144] = "[Round] "COL_WHITE"Team "COL_RED"Terrorist "COL_WHITE"has won this round!, 4 Scores and 5,000$ has been given to team "COL_RED"Terrorist "COL_WHITE".";
         
SendClientMessageToAll(COLOR_LIMETerrorWon);
         
GiveScoreToTeam(TEAM_COPS4);
         
GiveCashToTeam(TEAM_COPS5000);
      }
      new 
string[300];
      
TextDrawShowForPlayer(killeridKillerTextdraw[killerid]);
      
TextDrawShowForPlayer(killeridKillerTextdraw1[killerid]);
      
TextDrawShowForPlayer(killeridKillerTextdraw2[killerid]);
      
SavePlayerStats(killerid);
      
SetTimerEx("RemoveTextDraw"3000false,"i"killerid);
      
GivePlayerScore(killerid1);
      
GivePlayerCash(killerid100);
      
PlayerInfo[killerid][pKills]++;
      
KillerStreak[killerid] ++;
      if(
KillerStreak[killerid] > PlayerInfo[killerid][pHighStreak]) { PlayerInfo[killerid][pHighStreak] = KillerStreak[killerid]; }
      if(
KillerStreak[killerid] == 3)
      {
         
GivePlayerCash(killerid1500);
         
GivePlayerScore(killerid2);
         
PlayerInfo[playerid][pCookies] += 1;
         
format(string,sizeof(string),"%s has a killing spree (3 kills) (Reward: 1,500 + 2 Score + 1 Cookie)",PlayerName(killerid));
         
SendClientMessageToAll(COLOR_LIME,string);
         
PlayAudioStreamForPlayer(killerid,"http://portaldota.tempsite.ws/downloads/downloads/megakill.mp3");
      }
      if(
KillerStreak[killerid] == 5)
      {
         
GivePlayerCash(killerid2500);
         
GivePlayerScore(killerid3);
         
PlayerInfo[playerid][pCookies] += 2;
         
format(string,sizeof(string),"%s has a killing spree (5 kills) (Reward: 2,500$ + 3 Score + 2 Cookies)",PlayerName(killerid));
         
SendClientMessageToAll(COLOR_LIME,string);
         
PlayAudioStreamForPlayer(killerid,"http://portaldota.tempsite.ws/downloads/downloads/monsterkill.mp3");
      }
      if(
KillerStreak[killerid] == 10)
      {
         
GivePlayerCash(killerid5000);
         
GivePlayerScore(killerid4);
         
PlayerInfo[playerid][pCookies] += 3;
         
format(string,sizeof(string),"%s has a killing spree (10 kills) (Reward: 5,000$ + 4 Score + 3 Cookies)",PlayerName(killerid));
         
SendClientMessageToAll(COLOR_LIME,string);
         
PlayAudioStreamForPlayer(killerid,"http://www.ti69.com/audio/ultra-kill.mp3");
      }
      if(
KillerStreak[killerid] == 15)
      {
         
GivePlayerCash(killerid7500);
         
GivePlayerScore(killerid6);
         
PlayerInfo[playerid][pCookies] += 4;
         
format(string,sizeof(string),"%s has a killing spree (15 kills) (Reward: 7,500$ + 6 Score + 4 Cookies)",PlayerName(killerid));
         
SendClientMessageToAll(COLOR_LIME,string);
      }
      if(
KillerStreak[killerid] == 20)
      {
         
GivePlayerCash(killerid12500);
         
GivePlayerScore(killerid10);
         
PlayerInfo[playerid][pCookies] += 5;
         
format(string,sizeof(string),"%s has a killing spree (20 kills) (Reward: 12,500$ + 10 Score + 5 Cookies)",PlayerName(killerid));
         
SendClientMessageToAll(COLOR_LIME,string);
      }
      if(
KillerStreak[killerid] == 25)
      {
         
GivePlayerCash(killerid20000);
         
GivePlayerScore(killerid15);
         
PlayerInfo[playerid][pCookies] += 6;
         
format(string,sizeof(string),"%s has a killing spree (25 kills) (Reward: 20,000$ + 15 Score + 6 Cookies)",PlayerName(killerid));
         
SendClientMessageToAll(COLOR_LIME,string);
      }
      if(
KillerStreak[killerid] == 50)
      {
         
GivePlayerCash(killerid50000);
         
GivePlayerScore(killerid20);
         
PlayerInfo[playerid][pCookies] += 7;
         
format(string,sizeof(string),"%s has a killing spree (50 kills) (Reward: 50,000$ + 20 Score + 7 Cookies)",PlayerName(killerid));
         
SendClientMessageToAll(COLOR_LIME,string);
      }
      if(
KillerStreak[killerid] == 100)
      {
         
GivePlayerCash(killerid100000);
         
GivePlayerScore(killerid20);
         
PlayerInfo[playerid][pCookies] += 8;
         
format(string,sizeof(string),"%s has a killing spree (100 kills) (Reward: 1,00,000$ + 20 Score + 8 Cookies)",PlayerName(killerid));
         
SendClientMessageToAll(COLOR_LIME,string);
      }
      if(
KillerStreak[killerid] == 200)
      {
         
GivePlayerCash(killerid200000);
         
GivePlayerScore(killerid40);
         
PlayerInfo[playerid][pCookies] += 9;
         
format(string,sizeof(string),"%s has a killing spree (200 kills) (Reward: 2,00,000$ + 40 Score + 9 Cookies)",PlayerName(killerid));
         
SendClientMessageToAll(COLOR_LIME,string);
      }
   }
   if(
killerid != INVALID_PLAYER_ID)
   {
      if(
IsPlayerInArea(killerid, -371.093752582.03125, -121.09375,2851.5625))
      {
         if(
GetPlayerTeam(playerid) == TEAM_TERRORIST)
         {
            if(
IsPlayerInAnyVehicle(killerid))
            {
               if(
GetVehicleModel(GetPlayerVehicleID(killerid)) == 432 || GetVehicleModel(GetPlayerVehicleID(killerid)) == 425 || GetVehicleModel(GetPlayerVehicleID(killerid)) == 447)
               {
                  
SetPlayerHealth(killerid,0);
                  
GameTextForPlayer(killerid,"~r~Base Rape Is Not Allowed"30003);
               }
            }
         }
      }
   }
   if(
killerid != INVALID_PLAYER_ID)
   {
      if(
IsPlayerInArea(killerid23.43751804.6875333.9843752009.765625) || IsPlayerInArea(killerid263.6718752009.765625316.406252050.78125))
      {
         if(
GetPlayerTeam(playerid) == TEAM_COPS)
         {
            if(
IsPlayerInAnyVehicle(killerid))
            {
               if(
GetVehicleModel(GetPlayerVehicleID(killerid)) == 432 || GetVehicleModel(GetPlayerVehicleID(killerid)) == 425 || GetVehicleModel(GetPlayerVehicleID(killerid)) == 447)
               {
                  
SetPlayerHealth(killerid,0);
                  
GameTextForPlayer(killerid,"~r~Base Rape Is Not Allowed"30003);
               }
            }
         }
      }
   }
   new 
string11[200];
   if(
killerid != INVALID_PLAYER_ID)
   {
      if(
BountyOnHead[playerid] == 1)
      {
         
format(string11sizeof(string11), "%s just killed %s for a bounty total of: %s"PlayerName(killerid), PlayerName(playerid), ConvertPrice(BountyAmount[playerid]));
         
SendClientMessageToAll(COLOR_REDstring11);
         
GivePlayerCash(killeridBountyAmount[playerid]);
         
BountyOnHead[playerid] = 0;
         
BountyAmount[playerid] = 0;
         
BountySet[playerid] = "No-one";
         
Delete3DTextLabel(bounty3d[playerid]);
      }
   }
   for(new 
0MAX_PLAYERSi++)
   {
      if(
playerid != INVALID_PLAYER_ID && killerid != INVALID_PLAYER_ID)
      {
         if(
assistkill[i] == playerid && != killerid && assist[i][playerid] >= 70)
         {
            new 
string50[300];
            
format(string50sizeof(string50), "[Assist] 500$ for assisting %s(%d) in killing %s(%d) (%.2f)"PlayerName(killerid), killeridPlayerName(playerid), playeridassist[i][playerid]);
            
SendClientMessage(iCOLOR_LIMEstring50);
            
GivePlayerCash(i500);
            
assistkill[i] = INVALID_PLAYER_ID;
            
assist[i][playerid] = 0.0;
         }
      }
   }
   return 
1;

Reply
#2

Do you use OPSP? may be thats changing your camera position
Reply
#3

no i dont
Reply
#4

Because your problem is very weird, because i havent seen that type of problem that changes your camera position. and i guess your problem in OnPlayerDeath is
PHP код:
    if(playerid == g_DuelingID2) { } 
this statement is empty. you have many of them try using
PHP код:
    if(playerid == g_DuelingID2) return 1
in place of all..
Reply
#5

done, lets see who can solve my problem :P
Reply
#6

*bump
Reply
#7

*bump nobody can solve my problem ffs?
Reply
#8

*bumping last time! anybody could solve my problem for fuck sake!?
Reply
#9

You can make a video from this bug?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)