20.07.2018, 11:12
PHP код:
ServerHeartbeatTwo[1000]() {
foreach(new i: Player)
{
if(IsPlayerInAnyVehicle(i))
{
if(GetPlayerState(i) == PLAYER_STATE_PASSENGER)
{
if(GetPlayerState(i) == PLAYER_STATE_DRIVER) SetPlayerArmedWeapon(i, 0);
else if(PlayerInfo[i][pGuns][0] == 0 && GetPlayerWeapon(i) == 0) SetPlayerArmedWeapon(i, 0);
else if(PlayerInfo[i][pGuns][2] == 22 && GetPlayerWeapon(i) == 22) SetPlayerArmedWeapon(i, 22);
else if(PlayerInfo[i][pGuns][2] == 24 && GetPlayerWeapon(i) == 24) SetPlayerArmedWeapon(i, 24);
else if(PlayerInfo[i][pGuns][3] == 25 && GetPlayerWeapon(i) == 25) SetPlayerArmedWeapon(i, 25);
else if(PlayerInfo[i][pGuns][4] == 28 && GetPlayerWeapon(i) == 28) SetPlayerArmedWeapon(i, 28);
else if(PlayerInfo[i][pGuns][4] == 29 && GetPlayerWeapon(i) == 29) SetPlayerArmedWeapon(i, 29);
else if(PlayerInfo[i][pGuns][5] == 30 && GetPlayerWeapon(i) == 30) SetPlayerArmedWeapon(i, 30);
else if(PlayerInfo[i][pGuns][5] == 31 && GetPlayerWeapon(i) == 31) SetPlayerArmedWeapon(i, 31);
else if(PlayerInfo[i][pGuns][4] == 32 && GetPlayerWeapon(i) == 32) SetPlayerArmedWeapon(i, 32);
}
}
}
}